Skip to content

Releases: vishalanandl177/DRF-API-Logger

Version 1.1.15

01 Nov 18:17
Compare
Choose a tag to compare
  1. Function mask_sensitive_data now cover list of dicts.
  2. Now ignore data based on Maximum request and response body s….
  3. Licence and version changes..

What's Changed

  • Update README.md - change HTTP status codes to integers by @kylepollina in #78

New Contributors

Full Changelog: 1.1.14...1.1.15

Version 1.1.14

10 Jul 06:17
c7467e4
Compare
Choose a tag to compare

Added priority for tracing id

  1. It will look in header first
  2. If not present in header, it will call function to generate uuid.

Version 1.1.13

09 Jul 19:05
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.12...1.1.13

Version 1.1.12

18 Jan 18:23
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.11...1.1.12

Minor fixes.

17 Sep 21:08
Compare
Choose a tag to compare
  1. Changed request.path to request.path_info in middleware.
  2. Deprecation warning for thread setName or getName.
  3. Request twice when the method is not in DRF_API_LOGGER_METHODS.
  4. Unicode Escape problem in headers, body, and responses.

Added export option in CSV

12 Apr 16:35
bc1cc8c
Compare
Choose a tag to compare
Merge pull request #42 from vishalanandl177/staging

added export option in CSV

Log only selected request methods and Multiple log delete issue fixed

27 Jan 17:55
f515f54
Compare
Choose a tag to compare
  1. [DjangoAdmin] KeyError when trying to delete multiple API Logger entry issue fixed.
  2. New feature added to log only selected methods.

Increase api field length to 1024, Add support for list of dicts, timezone support added

21 Dec 18:15
8602734
Compare
Choose a tag to compare
  1. API field max_length increase from 512 to 1024.
  2. Add support for a list of dicts to hide sensitive data.
  3. Timezone support added.

For more info, check README.md

Identify slow APIs and Delete permissions added

07 Jun 14:10
Compare
Choose a tag to compare

You can also identify slow APIs by specifying DRF_API_LOGGER_SLOW_API_ABOVE in settings.py.

A new filter (By API Performance) will be visible, and you can choose slow or fast API.
DRF_API_LOGGER_SLOW_API_ABOVE = 200 # Default to None
Now you can delete the DRF API Logger using the admin panel.

Hide Sensitive Data From Logs and Change default database to store API logs

04 Jun 15:08
Compare
Choose a tag to compare

You may wish to hide sensitive information from being exposed in the logs.
You do this by setting DRF_API_LOGGER_EXCLUDE_KEYS in settings.py to a list of your desired sensitive keys.
The default is
DRF_API_LOGGER_EXCLUDE_KEYS = ['password', 'token', 'access', 'refresh']
Sensitive data will be replaced with "FILTERED".

You can specify the database where to store DRF API Logger logs by specifying DRF_API_LOGGER_DEFAULT_DATABASE.
DRF_API_LOGGER_DEFAULT_DATABASE = 'default' # Default to "default" if not specified
Make sure to migrate the database specified in DRF_API_LOGGER_DEFAULT_DATABASE.