Skip to content

Commit 0ec54c8

Browse files
Update README.md
1 parent 88b97b1 commit 0ec54c8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,18 @@ You can log only selected responses by specifying `DRF_API_LOGGER_STATUS_CODES`
195195
DRF_API_LOGGER_STATUS_CODES = [200, 400, 404, 500] # Default to an empty list (Log all responses).
196196
```
197197

198+
### Want to log custom content types? (Optional)
199+
You can log custom content types by specifying `DRF_API_LOGGER_CONTENT_TYPES` in settings.py.
200+
The specified content types will be added alongside with default content types.
201+
```python
202+
DRF_API_LOGGER_CONTENT_TYPES = [
203+
"application/json",
204+
"application/vnd.api+json",
205+
"application/gzip",
206+
"application/octet-stream",
207+
] # Default content types.
208+
```
209+
198210
### Want to see the API information in the local timezone? (Optional)
199211
You can also change the timezone by specifying `DRF_API_LOGGER_TIMEDELTA` in settings.py.
200212
It won't change the Database timezone. It will remain UTC or the timezone you have defined.
@@ -203,7 +215,7 @@ DRF_API_LOGGER_TIMEDELTA = 330 # UTC + 330 Minutes = IST (5:Hours, 30:Minutes ah
203215
# Specify in minutes.
204216
```
205217
```python
206-
# Yoc can specify negative values for the countries behind the UTC timezone.
218+
# You can specify negative values for the countries behind the UTC timezone.
207219
DRF_API_LOGGER_TIMEDELTA = -30 # Example
208220
```
209221

0 commit comments

Comments
 (0)