Browse Source

[core] Improve logging timezone information

Abraham Elmahrek 12 years ago
parent
commit
2f74427
3 changed files with 5 additions and 5 deletions
  1. 2 2
      desktop/conf.dist/log.conf
  2. 2 2
      desktop/conf/log.conf
  3. 1 1
      desktop/core/src/desktop/log/__init__.py

+ 2 - 2
desktop/conf.dist/log.conf

@@ -40,11 +40,11 @@ args=('%LOG_DIR%/error.log', 'a', 5000000, 5)
 
 [formatter_default]
 format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
-datefmt=%d/%b/%Y %H:%M:%S
+datefmt=%d/%b/%Y %H:%M:%S %z
 
 [formatter_access]
 format=[%(asctime)s] %(levelname)-8s %(message)s
-datefmt=%d/%b/%Y %H:%M:%S
+datefmt=%d/%b/%Y %H:%M:%S %z
 
 [loggers]
 keys=root,access

+ 2 - 2
desktop/conf/log.conf

@@ -45,11 +45,11 @@ args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 1000000, 3)
 
 [formatter_default]
 format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
-datefmt=%d/%b/%Y %H:%M:%S
+datefmt=%d/%b/%Y %H:%M:%S %z
 
 [formatter_access]
 format=[%(asctime)s] %(levelname)-8s %(message)s
-datefmt=%d/%b/%Y %H:%M:%S
+datefmt=%d/%b/%Y %H:%M:%S %z
 
 
 ########################################

+ 1 - 1
desktop/core/src/desktop/log/__init__.py

@@ -33,7 +33,7 @@ from desktop.lib.paths import get_desktop_root
 
 DEFAULT_LOG_DIR = 'logs'
 LOG_FORMAT = '[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s'
-DATE_FORMAT = '%d/%b/%Y %H:%M:%S'
+DATE_FORMAT = '%d/%b/%Y %H:%M:%S %z'
 
 CONF_RE = re.compile('%LOG_DIR%|%PROC_NAME%')