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.
38 lines
840 B
38 lines
840 B
1 month ago
|
{
|
||
|
"version":1,
|
||
|
"filters": {
|
||
|
"halloween":{
|
||
|
"()": "__main__.HalloweenFilter"
|
||
|
}
|
||
|
},
|
||
|
"formatters":{
|
||
|
"std_out":{
|
||
|
"format": "%(asctime)s : %(levelname)s : %(lineno)d : %(message)s",
|
||
|
"datefmt":"%I:%M:%S %d.%m.%Y"
|
||
1 month ago
|
},
|
||
|
"json": {
|
||
|
"()": "__main__.JsonFormatter"
|
||
|
}
|
||
1 month ago
|
},
|
||
|
"handlers":{
|
||
|
"console":{
|
||
|
"formatter": "std_out",
|
||
|
"class": "logging.StreamHandler",
|
||
|
"level": "DEBUG"
|
||
|
},
|
||
|
"file":{
|
||
1 month ago
|
"formatter":"json",
|
||
1 month ago
|
"class":"logging.FileHandler",
|
||
|
"level":"DEBUG",
|
||
|
"filename" : "halloween.log",
|
||
|
"filters": ["halloween"]
|
||
|
}
|
||
|
},
|
||
|
"root":{
|
||
|
"handlers":["console","file"],
|
||
|
"level": "DEBUG"
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|