我对 django 记录器感到困惑。我无法识别记录器和处理程序中“级别”的差异和目的。我已经配置了一个记录器-
"loggers": {
"django": {
"handlers": ["fileerror","filewarning","fileinfo"],
"level": "DEBUG",
"propagate": True
},
},
"handlers": {
"fileerror": {
"level": "ERROR",
"class": "logging.FileHandler",
"filename": "C:/Users/samrat/Desktop/Development/uttaran/uttaran new/org_manager/static/logs/uttaran-error.log",
"formatter": "app",
},
"filewarning": {
"level": "WARNING",
"class": "logging.FileHandler",
"filename": "C:/Users/samrat/Desktop/Development/uttaran/uttaran new/org_manager/static/logs/uttaran-warning.log",
"formatter": "app",
},
"fileinfo": {
"level": "INFO",
"class": "logging.FileHandler",
"filename": "C:/Users/samrat/Desktop/Development/uttaran/uttaran new/org_manager/static/logs/uttaran-info.log",
"formatter": "app",
},
},
我想知道记录器和处理程序的级别差异。
问候, 萨姆拉特