2020
09-29
09-29
django实现日志按日期分割
settings文件中配置:LOGGING={'version':1,'disable_existing_logger':False,'formatters':{'verbose':{'format':'%(asctime)s\"%(pathname)s:%(module)s:%(funcName)s:%(lineno)d\"[%(levelname)s]-%(message)s'},},#处理器'handlers':{#输出控制台'console':{'level':'INFO','class':'logging.StreamHandler','formatter':'verbose'},#输出文件'file'...
继续阅读 >