removed the usage of logzero, added a formal logging configuration file using json
This commit is contained in:
parent
59e6b6630a
commit
742ad0e3a2
3 changed files with 33 additions and 8 deletions
20
daemon/data/logging.conf
Normal file
20
daemon/data/logging.conf
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"version": 1,
|
||||
"handlers": {
|
||||
"console": {
|
||||
"class": "logging.StreamHandler",
|
||||
"formatter": "default",
|
||||
"level": "DEBUG",
|
||||
"stream": "ext://sys.stdout"
|
||||
}
|
||||
},
|
||||
"formatters": {
|
||||
"default": {
|
||||
"format": "%(asctime)s - %(levelname)s - %(module)s:%(funcName)s - %(message)s"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"level": "DEBUG",
|
||||
"handlers": ["console"]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue