[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9788 - trunk/gnue-common/src/apps
From: |
johannes |
Subject: |
[gnue] r9788 - trunk/gnue-common/src/apps |
Date: |
Thu, 27 Sep 2007 08:54:32 -0500 (CDT) |
Author: johannes
Date: 2007-09-27 08:54:32 -0500 (Thu, 27 Sep 2007)
New Revision: 9788
Modified:
trunk/gnue-common/src/apps/GDebug.py
Log:
Use a better format for logging to debug-file
issue123 in-progress
Modified: trunk/gnue-common/src/apps/GDebug.py
===================================================================
--- trunk/gnue-common/src/apps/GDebug.py 2007-09-27 12:38:00 UTC (rev
9787)
+++ trunk/gnue-common/src/apps/GDebug.py 2007-09-27 13:54:32 UTC (rev
9788)
@@ -230,7 +230,10 @@
if file is not None:
lgr = logging.getLogger('gnue')
- lgr.addHandler(logging.FileHandler(file, 'a+'))
+ fmt = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
+ hnd = logging.FileHandler(file, 'a+')
+ hnd.setFormatter(fmt)
+ lgr.addHandler(hnd)
lgr.setLevel(logging.DEBUG)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9788 - trunk/gnue-common/src/apps,
johannes <=