You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
457 B
23 lines
457 B
преди 4 години
|
from logging import DEBUG
|
||
|
|
||
|
dictLogConfig = {
|
||
|
"version": 1,
|
||
|
"formatters": {
|
||
|
"form_1": {
|
||
|
"format":
|
||
|
'%(asctime)s %(levelname)s: %(message)s'
|
||
|
}
|
||
|
},
|
||
|
"handlers": {
|
||
|
"console": {
|
||
|
"class": "logging.StreamHandler",
|
||
|
"formatter": "form_1",
|
||
|
"level": DEBUG
|
||
|
}
|
||
|
},
|
||
|
"root": {
|
||
|
"handlers": ['console'],
|
||
|
"level": DEBUG
|
||
|
}
|
||
|
}
|