mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
edit Log Time Format to 24 hours
This commit is contained in:
parent
b3d80b976f
commit
86f4197d0f
|
|
@ -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 %I:%M:%S')
|
||||
formatter = logging.Formatter('%(asctime)s - %(module)s [%(levelname)s] %(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
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ 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 %I:%M:%S')
|
||||
formatter = logging.Formatter('%(asctime)s - %(module)s [%(levelname)s] %(message)s', '%d.%m.%Y %H:%M:%S')
|
||||
|
||||
#create a file loger
|
||||
fh = logging.FileHandler('boswatch.log', 'w')
|
||||
|
|
|
|||
Loading…
Reference in a new issue