Share and Money Management 0.18devel
Public Member Functions | Public Attributes | List of all members
gui.log.StringHandler Class Reference

Stores the log records as a list of strings. More...

Inheritance diagram for gui.log.StringHandler:

Public Member Functions

def __init__ (self)
 Constructor. More...
 
def getBufferAsList (self, clean=True)
 Returns all buffered messages. More...
 
def getBufferAsString (self, clean=True)
 Returns all buffered messages. More...
 
def emit (self, record)
 Emit a record. More...
 
def flush (self)
 Empty the buffer. More...
 

Public Attributes

 buffer
 The message buffer itself. More...
 

Detailed Description

Stores the log records as a list of strings.

Constructor & Destructor Documentation

◆ __init__()

def gui.log.StringHandler.__init__ (   self)

Constructor.

Parameters
selfThe object instance itself

Member Function Documentation

◆ emit()

def gui.log.StringHandler.emit (   self,
  record 
)

Emit a record.

Add a formatted log record to the buffer.

References gui.log.StringHandler.buffer, and gui.log.StringHandler.flush().

Here is the call graph for this function:

◆ flush()

def gui.log.StringHandler.flush (   self)

Empty the buffer.

References gui.log.StringHandler.buffer.

Referenced by gui.log.StringHandler.emit(), and gui.log.StringHandler.getBufferAsList().

Here is the caller graph for this function:

◆ getBufferAsList()

def gui.log.StringHandler.getBufferAsList (   self,
  clean = True 
)

Returns all buffered messages.

Parameters
cleanClean the internal message buffer
Returns
List of messages strings
See also
getBufferAsString()

References gui.log.StringHandler.buffer, and gui.log.StringHandler.flush().

Referenced by gui.log.StringHandler.getBufferAsString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBufferAsString()

def gui.log.StringHandler.getBufferAsString (   self,
  clean = True 
)

Returns all buffered messages.

Parameters
cleanClean the internal message buffer
Returns
Messages concatenate to a string
See also
getBufferAsList()

References gui.log.StringHandler.getBufferAsList().

Here is the call graph for this function:

Member Data Documentation

◆ buffer

gui.log.StringHandler.buffer

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