add file logging to cr_connect.log

This commit is contained in:
mike cullerton 2024-05-16 08:42:40 -04:00
parent 2f2214581e
commit 26559f5304
1 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,7 @@ logging_config = {
'disable_existing_loggers': False,
"loggers": {
'': { # root logger
'handlers': ['console'],
'handlers': ['console', 'file'],
'level': 'INFO',
'propagate': True
},
@ -36,7 +36,7 @@ logging_config = {
"root": {
"level": "INFO",
"handlers": [
"console",
"console", "file"
]
},
"handlers": {
@ -45,6 +45,12 @@ logging_config = {
"class": "logging.StreamHandler",
"stream": "ext://sys.stdout",
"level": "INFO"
},
"file": {
"level": "INFO",
"formatter": "simple",
"class": "logging.FileHandler",
"filename": "cr_connect.log"
}
}
}