Alle Dateien aus dem Pythonkurs
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.
 
 
 
 

37 lines
840 B

{
"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"
},
"json": {
"()": "__main__.JsonFormatter"
}
},
"handlers":{
"console":{
"formatter": "std_out",
"class": "logging.StreamHandler",
"level": "DEBUG"
},
"file":{
"formatter":"json",
"class":"logging.FileHandler",
"level":"DEBUG",
"filename" : "halloween.log",
"filters": ["halloween"]
}
},
"root":{
"handlers":["console","file"],
"level": "DEBUG"
}
}