Why Django logging skips log entries?

前端 未结 4 2016
名媛妹妹
名媛妹妹 2020-12-30 23:53

This is my settings module:

LOGGING = {
  \'version\': 1,
  \'disable_existing_loggers\': False,
  \'handlers\': {
    \'file\': {
        \'level\': \'DEBU         


        
4条回答
  •  情话喂你
    2020-12-31 00:10

    You could add the "catch all" logger to the loggers section:

    'loggers': {
        '': {
            'handlers': ['file'],
            'level': 'DEBUG',
        }
    }
    

    It will catch all the log messages which are not caught by Django's default loggers.

提交回复
热议问题