l.s.l.l.BufferLogger(FakeLogger) : class documentation

Part of lp.services.log.logger View In Hierarchy

A logger that logs to a StringIO object.
Method __init__ The default output_file is sys.stdout.
Method getLogBuffer Return the existing log messages.
Method clearLogBuffer Clear out the existing log messages.
Method getLogBufferAndClear Return the existing log messages and clear the buffer.
Method content Return a testtools.content.Content for this object's buffer.

Inherited from FakeLogger:

Method setLevel Undocumented
Method getEffectiveLevel Undocumented
Method message Undocumented
Method log Undocumented
Method warning Undocumented
Method error Undocumented
Method critical Undocumented
Method info Undocumented
Method debug Undocumented
Method debug2 Undocumented
Method debug3 Undocumented
Method debug4 Undocumented
Method debug5 Undocumented
Method debug6 Undocumented
Method debug7 Undocumented
Method debug8 Undocumented
Method debug9 Undocumented
Method _format_message Undocumented
def __init__(self):
The default output_file is sys.stdout.
def getLogBuffer(self):
Return the existing log messages.
def clearLogBuffer(self):
Clear out the existing log messages.
def getLogBufferAndClear(self):
Return the existing log messages and clear the buffer.
@property
def content(self):
Return a testtools.content.Content for this object's buffer.

Use with testtools.TestCase.addDetail, fixtures.Fixture.addDetail, and anything else that understands details.

API Documentation for Launchpad, generated by pydoctor at 2018-05-23 00:00:09.