mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-05 00:00:03 +01:00
edit log format
This commit is contained in:
parent
ec7e695761
commit
96ba4a459c
|
|
@ -15,6 +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')
|
||||
|
||||
#create a file loger
|
||||
fh = logging.FileHandler('boswatch.log', 'w')
|
||||
|
|
|
|||
Loading…
Reference in a new issue