seq  1.1.0
 All Classes Namespaces Files Functions Variables Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
etr.tools.logcapture.LogCapture Class Reference

Captures log messages into a memory buffer and allows on-demand writing captured messages to stderr. More...

Public Member Functions

def __init__
 
def start
 Start capturing logs. More...
 
def clear
 Clear captured logs. More...
 
def write_captured
 Write captured logs since last clear() or start() More...
 

Public Attributes

 handler
 

Static Public Attributes

string logformat = "%(name)s: %(levelname)s: %(message)s"
 
 logdateformat = None
 
 stream = sys.stderr
 

Detailed Description

Captures log messages into a memory buffer and allows on-demand writing captured messages to stderr.

Constructor & Destructor Documentation

def etr.tools.logcapture.LogCapture.__init__ (   self)

Member Function Documentation

def etr.tools.logcapture.LogCapture.clear (   self)

Clear captured logs.

def etr.tools.logcapture.LogCapture.start (   self)

Start capturing logs.

def etr.tools.logcapture.LogCapture.write_captured (   self,
  message = None 
)

Write captured logs since last clear() or start()

Member Data Documentation

etr.tools.logcapture.LogCapture.handler
etr.tools.logcapture.LogCapture.logdateformat = None
static
string etr.tools.logcapture.LogCapture.logformat = "%(name)s: %(levelname)s: %(message)s"
static
etr.tools.logcapture.LogCapture.stream = sys.stderr
static

The documentation for this class was generated from the following file: