mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-02-18 13:14:15 +01:00
little format change in log
This commit is contained in:
parent
30f0a3c88d
commit
928b143e2e
|
|
@ -23,7 +23,7 @@ import time #timestamp for doublealarm
|
|||
logger = logging.getLogger()
|
||||
logger.setLevel(logging.DEBUG)
|
||||
#set log string format
|
||||
formatter = logging.Formatter('%(asctime)s - %(module)s [%(levelname)s] %(message)s', '%d.%m.%Y %H:%M:%S')
|
||||
formatter = logging.Formatter('%(asctime)s - %(module)-15s [%(levelname)-8s] %(message)s', '%d.%m.%Y %H:%M:%S')
|
||||
#create a file logger
|
||||
fh = logging.FileHandler('log/boswatch.log', 'w')
|
||||
fh.setLevel(logging.DEBUG) #log level >= Debug
|
||||
|
|
|
|||
Loading…
Reference in a new issue