Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
691 B
3
Indexable
Never
LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
        },
        'actions_tracker': {
            'level': 'ERROR',
            'class': 'pxd_actions_tracker.trackers.track_logs.ActionsTrackerHandler',
        },
    },
    'loggers': {
        'django.request': {
            'handlers': [
                'console', 'actions_tracker',
            ],
            'level': 'WARNING',
            'propagate': False,
        },
    },
    'root': {
        'handlers': [
            'console', 'actions_tracker'
        ],
        'level': 'INFO',
        # 'level': 'DEBUG',
    },
}