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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.