update
This commit is contained in:
46
utils/logging.json
Normal file
46
utils/logging.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"version":1,
|
||||
"disable_existing_loggers":false,
|
||||
"formatters":{
|
||||
"simple":{
|
||||
"format":"%(asctime)s - %(module)s - %(thread)d - %(levelname)s : %(message)s"
|
||||
}
|
||||
},
|
||||
"handlers":{
|
||||
"console":{
|
||||
"class":"logging.StreamHandler",
|
||||
"level":"DEBUG",
|
||||
"formatter":"simple",
|
||||
"stream":"ext://sys.stdout"
|
||||
},
|
||||
"info_file_handler":{
|
||||
"class":"logging.handlers.RotatingFileHandler",
|
||||
"level":"INFO",
|
||||
"formatter":"simple",
|
||||
"filename":"../log/ieemoo-ai-zhanting-biz.log",
|
||||
"maxBytes":10485760,
|
||||
"backupCount":20,
|
||||
"encoding":"utf8"
|
||||
},
|
||||
"error_file_handler":{
|
||||
"class":"logging.handlers.RotatingFileHandler",
|
||||
"level":"ERROR",
|
||||
"formatter":"simple",
|
||||
"filename":"../log/ieemoo-ai-zhanting-biz.log",
|
||||
"maxBytes":10485760,
|
||||
"backupCount":20,
|
||||
"encoding":"utf8"
|
||||
}
|
||||
},
|
||||
"loggers":{
|
||||
"my_module":{
|
||||
"level":"ERROR",
|
||||
"handlers":["info_file_handler"],
|
||||
"propagate":"no"}
|
||||
},
|
||||
"root":{
|
||||
"level":"INFO",
|
||||
"handlers":["console","info_file_handler","error_file_handler"]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user