mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 15:36:50 +08:00
init python part (#7)
This commit is contained in:
41
python/conf/logging.json
Executable file
41
python/conf/logging.json
Executable file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"version":1,
|
||||
"disable_existing_loggers":false,
|
||||
"formatters":{
|
||||
"simple":{
|
||||
"format":"%(asctime)s - %(name)s - %(levelname)s - %(filename)s - %(lineno)d - %(message)s"
|
||||
}
|
||||
},
|
||||
"handlers":{
|
||||
"console":{
|
||||
"class":"logging.StreamHandler",
|
||||
"level":"DEBUG",
|
||||
"formatter":"simple",
|
||||
"stream":"ext://sys.stdout"
|
||||
},
|
||||
"info_file_handler":{
|
||||
"class":"logging.handlers.TimedRotatingFileHandler",
|
||||
"level":"INFO",
|
||||
"formatter":"simple",
|
||||
"filename":"log/info.log",
|
||||
"when": "MIDNIGHT",
|
||||
"interval":1,
|
||||
"backupCount":30,
|
||||
"encoding":"utf8"
|
||||
},
|
||||
"error_file_handler":{
|
||||
"class":"logging.handlers.TimedRotatingFileHandler",
|
||||
"level":"ERROR",
|
||||
"formatter":"simple",
|
||||
"filename":"log/errors.log",
|
||||
"when": "MIDNIGHT",
|
||||
"interval":1,
|
||||
"backupCount":30,
|
||||
"encoding":"utf8"
|
||||
}
|
||||
},
|
||||
"root":{
|
||||
"level":"DEBUG",
|
||||
"handlers":["console","info_file_handler","error_file_handler"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user