Configure logging with logging_config.json

See https://docs.python.org/3/library/logging.config.html for details on
the schema for this file.
This commit is contained in:
Eryn Wells 2022-05-11 07:52:35 -07:00
parent 8849a9de73
commit 2762933c83
2 changed files with 60 additions and 9 deletions

27
logging_config.json Normal file
View file

@ -0,0 +1,27 @@
{
"version": 1,
"formatters": {
"default": {
"format": "%(asctime)s %(name)s: %(message)s",
"datefmt": "%Y-%m-%d %I:%M:%S"
}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "default",
"level": "DEBUG",
"stream": "ext://sys.stdout"
}
},
"loggers": {
"actions.movement": {
"level": "DEBUG",
"handlers": ["console"]
}
},
"root": {
"level": "DEBUG",
"handlers": ["console"]
}
}