You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2005/05/06 12:04:50 UTC

svn commit: r168584 - in /gump/branches/Gump3/pygump: gump.log.config.debug python/gump/plugins/logreporter.py

Author: leosimons
Date: Fri May  6 03:04:49 2005
New Revision: 168584

URL: http://svn.apache.org/viewcvs?rev=168584&view=rev
Log:
More pretty printing/cli updates. I'm done with this now :-)

Modified:
    gump/branches/Gump3/pygump/gump.log.config.debug
    gump/branches/Gump3/pygump/python/gump/plugins/logreporter.py

Modified: gump/branches/Gump3/pygump/gump.log.config.debug
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/gump.log.config.debug?rev=168584&r1=168583&r2=168584&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/gump.log.config.debug (original)
+++ gump/branches/Gump3/pygump/gump.log.config.debug Fri May  6 03:04:49 2005
@@ -94,7 +94,8 @@
 #args=('work/log/run.log', 'W', '0', 10)
 
 [formatter_simple]
-format=%(levelname)s - %(message)s
+format=%(asctime)-8s %(levelname)-8s   %(message)s
+datefmt=%H:%M:%S
 
 [formatter_fileformatter]
 format=%(levelname)s [%(name)s] %(asctime)s: %(pathname)s:%(lineno)d: %(message)s

Modified: gump/branches/Gump3/pygump/python/gump/plugins/logreporter.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/plugins/logreporter.py?rev=168584&r1=168583&r2=168584&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/plugins/logreporter.py (original)
+++ gump/branches/Gump3/pygump/python/gump/plugins/logreporter.py Fri May  6 03:04:49 2005
@@ -50,9 +50,9 @@
         self.log = log
     
     def initialize(self):
-        self.log.debug(hr)
+        self.log.debug('------------------------------------------------')
         self.log.debug('  Outputting all log data (potentially a lot)...')
-        self.log.debug(hr)
+        self.log.debug('------------------------------------------------')
 
     def _do_log_printing_visit(self, object, container=None):
         name = getattr(object, "name", "unnamed %s" % type(object))
@@ -64,8 +64,8 @@
         for attribute in dir(object):
             if attribute.endswith("_log"):
                 logmsg = getattr(object,attribute)
-                self.log.debug("---%s.%s----------------------------------:\n%s" % (name, attribute, logmsg))
-                self.log.debug(hr)
+                self.log.debug("---%s.%s--:\n%s" % (name, attribute, logmsg))
+                self.log.debug('------------------------------------------------')
             #else:
             #    self.log.debug(' %s -> %s' % (attribute,getattr(object,attribute)))
 
@@ -77,7 +77,7 @@
                 traceback.print_tb(entry.traceback, file=target)
                 trace = target.getvalue()
                 target.close()
-                self.log.error("---%s--exception--%s:%s------:\n%s" % (name, entry.type, entry.value, trace))
+                self.log.error("---%s--exception--%s:%s--:\n%s" % (name, entry.type, entry.value, trace))
     
     def visit_workspace(self, workspace):
         self._do_log_printing_visit(workspace)
@@ -92,7 +92,7 @@
             
     def finalize(self):
         self.log.debug('  Finished outputting all log data.')
-        self.log.debug(hr)
+        self.log.debug('-----------------------------------')
 
 class ResultLogReporterPlugin(AbstractPlugin):
     """Outputs information about build results to the logs."""