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.
33 lines
900 B
33 lines
900 B
{
|
|
"version":1,
|
|
"formatters":{
|
|
"std_out":{
|
|
"format": "%(asctime)s : %(levelname)s : %(module)s : %(funcName)s : %(lineno)d : (Process Details : (%(process)d, %(processName)s), Thread Details : (%(thread)d, %(threadName)s))\nLog : %(message)s",
|
|
"datefmt":"%d-%m-%Y %I:%M:%S"
|
|
}
|
|
},
|
|
"handlers":{
|
|
"console":{
|
|
"formatter": "std_out",
|
|
"class": "logging.StreamHandler",
|
|
"level": "DEBUG"
|
|
},
|
|
"db":{
|
|
"formatter": "std_out",
|
|
"()": "__main__.DBHandler",
|
|
"level": "DEBUG"
|
|
},
|
|
"file":{
|
|
"formatter":"std_out",
|
|
"class":"logging.FileHandler",
|
|
"level":"DEBUG",
|
|
"filename" : "raspithek.log"
|
|
}
|
|
},
|
|
"root":{
|
|
"handlers":["console","file","db"],
|
|
"level": "DEBUG"
|
|
}
|
|
|
|
}
|
|
|
|
|