diff --git a/plugin_test/boswatch.py b/plugin_test/boswatch.py index bbc0725..62472a7 100644 --- a/plugin_test/boswatch.py +++ b/plugin_test/boswatch.py @@ -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