logging日志文件配置

Posted 孟郊

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了logging日志文件配置相关的知识,希望对你有一定的参考价值。

 

简洁版:

LOGGING = {
    version: 1,
    disable_existing_loggers: False,
    handlers: {
        console:{
            level:DEBUG,
            class:logging.StreamHandler,
        },
    },
    loggers: {
        django.db.backends: {
            handlers: [console],
            propagate: True,
            level:DEBUG,
        },
    }
}

 

以上是关于logging日志文件配置的主要内容,如果未能解决你的问题,请参考以下文章