module documentation

Undocumented

Class ​Admin​Email​Handler An exception log handler that emails log entries to site admins.
Class ​Callback​Filter A logging filter that checks the return value of a given callable (which takes the record-to-be-logged as its only parameter) to decide whether to log a record.
Class ​Require​Debug​False Undocumented
Class ​Require​Debug​True Undocumented
Constant DEFAULT​_LOGGING Undocumented
Variable request​_logger Undocumented
Class ​Server​Formatter Undocumented
Function configure​_logging Undocumented
Function log​_response Log errors based on HttpResponse status.
DEFAULT_LOGGING: dict =

Undocumented

Value
{'version': 1,
 'disable_existing_loggers': False,
 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}
,
             'require_debug_true': {'()': 'django.utils.log.RequireDebugTrue'}},
 'formatters': {'django.server': {'()': 'django.utils.log.ServerFormatter',
                                  'format': '[{server_time}] {message}',
...
request_logger =

Undocumented

def configure_logging(logging_config, logging_settings):

Undocumented

def log_response(message, *args, response=None, request=None, logger=request_logger, level=None, exc_info=None):

Log errors based on HttpResponse status.

Log 5xx responses as errors and 4xx responses as warnings (unless a level is given as a keyword argument). The HttpResponse status_code and the request are passed to the logger's extra parameter.