@@ -18,20 +18,38 @@ Example:
1818Settings
1919--------
2020
21- +------------------------------------------+---------+-----------------+-------------------------------------------------------------------------------+
22- | Key | Type | Default | Description |
23- +==========================================+=========+=================+===============================================================================+
24- | DJANGO_STRUCTLOG_CELERY_ENABLED | boolean | False | See :ref: `celery_integration ` |
25- +------------------------------------------+---------+-----------------+-------------------------------------------------------------------------------+
26- | DJANGO_STRUCTLOG_IP_LOGGING_ENABLED | boolean | True | automatically bind user ip using `django-ipware ` |
27- +------------------------------------------+---------+-----------------+-------------------------------------------------------------------------------+
28- | DJANGO_STRUCTLOG_STATUS_4XX_LOG_LEVEL | int | logging.WARNING | Log level of 4XX status codes |
29- +------------------------------------------+---------+-----------------+-------------------------------------------------------------------------------+
30- | DJANGO_STRUCTLOG_STATUS_5XX_LOG_LEVEL | int | logging.ERROR | Log level of 5XX status codes |
31- +------------------------------------------+---------+-----------------+-------------------------------------------------------------------------------+
32- | DJANGO_STRUCTLOG_REQUEST_CANCELLED_LOG_LEVEL | int | logging.WARNING | Log level of request_cancelled messages |
33- +------------------------------------------+---------+-----------------+-------------------------------------------------------------------------------+
34- | DJANGO_STRUCTLOG_COMMAND_LOGGING_ENABLED | boolean | False | See :ref: `commands ` |
35- +------------------------------------------+---------+-----------------+-------------------------------------------------------------------------------+
36- | DJANGO_STRUCTLOG_USER_ID_FIELD | string | ``"pk" `` | Change field used to identify user in logs, ``None `` to disable user binding |
37- +------------------------------------------+---------+-----------------+-------------------------------------------------------------------------------+
21+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
22+ | Key | Type | Default | Description |
23+ +==================================================+=========+=================+==============================================================================+
24+ | DJANGO_STRUCTLOG_CELERY_ENABLED | boolean | False | See :ref: `celery_integration ` |
25+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
26+ | DJANGO_STRUCTLOG_CELERY_DEFAULT_LOG_LEVEL | int | logging.INFO | The default log level for celery task events |
27+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
28+ | DJANGO_STRUCTLOG_CELERY_TASK_START_LOG_LEVEL | int | logging.INFO | Log level for task_enqueued and task_started events |
29+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
30+ | DJANGO_STRUCTLOG_CELERY_TASK_SUCCESS_LOG_LEVEL | int | logging.INFO | Log level for task_succeeded events |
31+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
32+ | DJANGO_STRUCTLOG_CELERY_TASK_NOTICE_LOG_LEVEL | int | logging.WARNING | Log level for task_retrying and task_revoked events |
33+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
34+ | DJANGO_STRUCTLOG_CELERY_TASK_FAILURE_LOG_LEVEL | int | logging.INFO | Log level for task_failed |
35+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
36+ | DJANGO_STRUCTLOG_CELERY_TASK_ERROR_LOG_LEVEL | int | logging.ERROR | Log level for true errors using Celery |
37+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
38+ | DJANGO_STRUCTLOG_IP_LOGGING_ENABLED | boolean | True | automatically bind user ip using `django-ipware ` |
39+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
40+ | DJANGO_STRUCTLOG_DEFAULT_LOG_LEVEL | int | logging.INFO | The default log level for non-error statuses |
41+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
42+ | DJANGO_STRUCTLOG_START_LOG_LEVEL | int | logging.INFO | The level at which request starts are logged |
43+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
44+ | DJANGO_STRUCTLOG_STATUS_2XX_LOG_LEVEL | int | logging.INFO | The level of 2XX status codes |
45+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
46+ | DJANGO_STRUCTLOG_STATUS_4XX_LOG_LEVEL | int | logging.WARNING | Log level of 4XX status codes |
47+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
48+ | DJANGO_STRUCTLOG_STATUS_5XX_LOG_LEVEL | int | logging.ERROR | Log level of 5XX status codes |
49+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
50+ | DJANGO_STRUCTLOG_REQUEST_CANCELLED_LOG_LEVEL | int | logging.WARNING | Log level of request_cancelled messages |
51+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
52+ | DJANGO_STRUCTLOG_COMMAND_LOGGING_ENABLED | boolean | False | See :ref: `commands ` |
53+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
54+ | DJANGO_STRUCTLOG_USER_ID_FIELD | string | ``"pk" `` | Change field used to identify user in logs, ``None `` to disable user binding |
55+ +--------------------------------------------------+---------+-----------------+------------------------------------------------------------------------------+
0 commit comments