Package bitten :: Module api :: Class ILogFormatter

Class ILogFormatter

         object --+    
                  |    
trac.core.Interface --+
                      |
                     ILogFormatter

Extension point interface for components that format build log messages.
Instance Methods
basestring
get_formatter(req, build)
Return a function that gets called for every log message.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

get_formatter(req, build)

 

Return a function that gets called for every log message.

The function must take four positional arguments, step, generator, level and message, and return the formatted message as a string.

Parameters:
  • req - the request object
  • build (Build) - the build to which the logs belong that should be formatted
Returns: basestring
the formatted log message