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
2 months 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"
|
||
|
}
|
||
2 months ago
|
},
|
||
|
"handlers":{
|
||
|
"console":{
|
||
|
"formatter": "std_out",
|
||
|
"class": "logging.StreamHandler",
|
||
|
"level": "DEBUG"
|
||
|
},
|
||
|
"file":{
|
||
1 month ago
|
"formatter":"json",
|
||
2 months ago
|
"class":"logging.FileHandler",
|
||
|
"level":"DEBUG",
|
||
|
"filename" : "halloween.log",
|
||
|
"filters": ["halloween"]
|
||
|
}
|
||
|
},
|
||
|
"root":{
|
||
|
"handlers":["console","file"],
|
||
|
"level": "DEBUG"
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|