Bug 1059609 - Provide enumeration of known log actions in mozlog.structured. r=jgraham
authorChris Manchester <cmanchester@mozilla.com>
Tue, 02 Sep 2014 14:43:18 -0400
changeset 203346 f7f7e8683a87a49c049b204619eb1ab872d84ceb
parent 203345 296fe203e6fd0835f02b6aa2037eaa490e1424ed
child 203347 abda4b975d58d20f52b92b42466fbd07ef2518c2
push id27425
push userryanvm@gmail.com
push dateWed, 03 Sep 2014 20:38:59 +0000
treeherdermozilla-central@acbdce59da2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1059609
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1059609 - Provide enumeration of known log actions in mozlog.structured. r=jgraham
testing/mozbase/mozlog/mozlog/structured/structuredlog.py
--- a/testing/mozbase/mozlog/mozlog/structured/structuredlog.py
+++ b/testing/mozbase/mozlog/mozlog/structured/structuredlog.py
@@ -83,16 +83,19 @@ def set_default_logger(default_logger):
     """
     global _default_logger_name
 
     _default_logger_name = default_logger.name
 
 log_levels = dict((k.upper(), v) for v, k in
                   enumerate(["critical", "error", "warning", "info", "debug"]))
 
+def log_actions():
+    """Returns the set of actions implemented by mozlog."""
+    return set(convertor_registry.keys())
 
 class LoggerState(object):
     def __init__(self):
         self.handlers = []
         self.running_tests = set()
         self.suite_started = False