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:
parent
8849a9de73
commit
2762933c83
2 changed files with 60 additions and 9 deletions
27
logging_config.json
Normal file
27
logging_config.json
Normal 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"]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue