Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.16 KB

configuration.rst

File metadata and controls

27 lines (19 loc) · 1.16 KB

Configuration

In your settings.py you can customize django-structlog.

Example:

import logging
DJANGO_STRUCTLOG_STATUS_4XX_LOG_LEVEL = logging.INFO

Settings

Key Type Default Description
DJANGO_STRUCTLOG_CELERY_ENABLED boolean False See :ref:`celery_integration`
DJANGO_STRUCTLOG_STATUS_4XX_LOG_LEVEL int logging.WARNING Log level of 4XX status codes
DJANGO_STRUCTLOG_COMMAND_LOGGING_ENABLED boolean False See :ref:`commands`