Log (certego_saas.ext.log)

class certego_saas.ext.log.LogBuilder(request, response, view, exception=None)[source]

Bases: object

Builds log object using request, response, view, exception data and logs it.

Based on: https://github.com/lingster/drf-api-tracking

handle_log()[source]

Hook to define what happens with the log.

should_log() → bool[source]

Method that should return a value that evaluated to True if the request should be logged. By default, check if the request method is in logging_methods.