Skip to content

Commit d61b789

Browse files
📝 Update README, selected response status codes.
1 parent 99dd974 commit d61b789

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ You can log only selected methods by specifying `DRF_API_LOGGER_METHODS` in sett
190190
DRF_API_LOGGER_METHODS = ['GET', 'POST', 'DELETE', 'PUT'] # Default to empty list (Log all the requests).
191191
```
192192

193+
### Want to log only selected response status codes? (Optional)
194+
You can log only selected responses by specifying `DRF_API_LOGGER_STATUS_CODES` in settings.py.
195+
```python
196+
DRF_API_LOGGER_STATUS_CODES = ['200', '400', '404', '500'] # Default to empty list (Log all responses).
197+
```
198+
193199
### Want to see the API information in local timezone? (Optional)
194200
You can also change the timezone by specifying `DRF_API_LOGGER_TIMEDELTA` in settings.py.
195201
It won't change the Database timezone. It will still remain UTC or the timezone you have defined.

0 commit comments

Comments
 (0)