From 86f4197d0fb65e4467b5bfb5a024b9e2af5ef129 Mon Sep 17 00:00:00 2001 From: Schrolli Date: Tue, 19 May 2015 14:30:03 +0200 Subject: [PATCH] edit Log Time Format to 24 hours --- plugin_test/boswatch.py | 2 +- plugin_test/plugin_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin_test/boswatch.py b/plugin_test/boswatch.py index 944c13e..7ea591d 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 %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 diff --git a/plugin_test/plugin_test.py b/plugin_test/plugin_test.py index 4fb0229..0d34f14 100755 --- a/plugin_test/plugin_test.py +++ b/plugin_test/plugin_test.py @@ -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')