Auto-tools/Projects/Structured Logging: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 22: Line 22:


=== Logging APIs ===
=== Logging APIs ===
mozlog.structured [http://mozbase.readthedocs.org/en/latest/mozlog_structured.html readthedocs]
StructuredLog.jsm
StructuredLogger.java
=== Log data format ===
=== Log data format ===
== Status ==
== Status ==

Revision as of 21:41, 24 August 2014

This page is a high level account of the structured logging project providing links to many resources about the project. This page is a work in progress.

Background and Motivation

Goals:

  • Support a wider range of output formats
  • Eliminate complex and brittle regex based log parsing
  • Consolidate output processing between harnesses

Approach:

  • Establish a common data format for test results across harnesses
  • Populate data format in-harness with a standardized logging API
  • Log data from test harnesses as data structures rather than formatting them into strings

Implementation

Participant Systems

  • System under test (Javascript, Java, C++)
  • Python test harness
  • Mozharness/Buildbot
  • Tbpl/Treeherder
  • Blobber

Logging APIs

mozlog.structured readthedocs

StructuredLog.jsm

StructuredLogger.java

Log data format

Status