Alexander Hesse avatar Alexander Hesse committed 656335a

Added init logging keyword

Comments (0)

Files changed (3)


         'Error': ((1, 31), False),
         'info': ((35,), False),
         'stub': ((34,), False),
+        'init': ((1, 34), False),
     log_on_quiet = [
-        "info",
+        "init",
     def __init__(self, kw_to_color={}, file=None):


     def _do(self, goal, func, *args, **kwds):
         title = func.task_title
         if goal in self.done:
-  "already done: %s" % title)
+            self.log.init("already done: %s" % title)
-  "%s..." % title)
+            self.log.init("%s" % title)
         debug_print('starting', goal)
         #import gc; gc.dump_rpy_heap('rpyheap-after-%s.dump' % goal)
         return res
-    @taskdef([], "Annotating&simplifying")
+    @taskdef([], "Annotating & simplifying")
     def task_annotate(self):
         """ Annotate


 py.log.setconsumer("translation", ansi_log)
 def load_target(targetspec):
-"Translating target as defined by %s" % targetspec)
+    log.init("Translating target %s" % targetspec)
     if not targetspec.endswith('.py'):
         targetspec += '.py'
     thismod = sys.modules[__name__]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.