@@ -169,7 +169,7 @@ Interval
169
169
=====
170
170
171
171
DRF API Logger also waits for a period of time. If the queue is not full
172
- and there are some logs to be inserted, it inserts after the interval
172
+ and there are some logs to be inserted into the DB , it inserts after the interval
173
173
ends.
174
174
175
175
Specify an interval (In Seconds).
@@ -186,8 +186,7 @@ Specify an interval (In Seconds).
186
186
Skip the namespace
187
187
==================
188
188
189
- Skip namespace You can skip the entire app to be logged
190
- into the database by specifying the namespace of the app as a list.
189
+ Skip namespace You can skip the entire app to be logged into the database by specifying the namespace of the app as a list.
191
190
192
191
.. code :: python
193
192
@@ -294,17 +293,6 @@ This behavior can be configured with the following options additional:
294
293
DRF_API_LOGGER_MAX_REQUEST_BODY_SIZE = 1024 # default to -1, no limit.
295
294
DRF_API_LOGGER_MAX_RESPONSE_BODY_SIZE = 1024 # default to -1, no limit.
296
295
297
- API with or without Host
298
- ========================
299
-
300
- You can specify whether an endpoint of API should have absolute URI or
301
- not by setting this variable in the DRF settings.py file.
302
-
303
- .. code :: python
304
-
305
- DRF_API_LOGGER_PATH_TYPE = ' ABSOLUTE' # Default to ABSOLUTE if not specified
306
- # Possible values are ABSOLUTE, FULL_PATH or RAW_URI
307
-
308
296
Tracing
309
297
=======
310
298
@@ -339,6 +327,17 @@ can specify the header name.
339
327
340
328
DRF_API_LOGGER_TRACING_ID_HEADER_NAME : str = ' X_TRACING_ID' # Replace with actual header name.
341
329
330
+ API with or without Host
331
+ ========================
332
+
333
+ You can specify whether an endpoint of API should have absolute URI or
334
+ not by setting this variable in the DRF settings.py file.
335
+
336
+ .. code :: python
337
+
338
+ DRF_API_LOGGER_PATH_TYPE = ' ABSOLUTE' # Default to ABSOLUTE if not specified
339
+ # Possible values are ABSOLUTE, FULL_PATH or RAW_URI
340
+
342
341
Considering we are accessing the following URL:
343
342
http://127.0.0.1:8000/api/v1/?page=123 DRF_API_LOGGER_PATH_TYPE possible
344
343
values are: 1. ABSOLUTE (Default) :
0 commit comments