Share and Money Management 0.18devel
|
Stores the log records as a list of strings. More...
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... | |
Stores the log records as a list of strings.
def gui.log.StringHandler.__init__ | ( | self | ) |
Constructor.
self | The object instance itself |
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().
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().
def gui.log.StringHandler.getBufferAsList | ( | self, | |
clean = True |
|||
) |
Returns all buffered messages.
clean | Clean the internal message buffer |
References gui.log.StringHandler.buffer, and gui.log.StringHandler.flush().
Referenced by gui.log.StringHandler.getBufferAsString().
def gui.log.StringHandler.getBufferAsString | ( | self, | |
clean = True |
|||
) |
Returns all buffered messages.
clean | Clean the internal message buffer |
References gui.log.StringHandler.getBufferAsList().
gui.log.StringHandler.buffer |
The message buffer itself.
Referenced by gui.log.StringHandler.emit(), gui.log.StringHandler.flush(), and gui.log.StringHandler.getBufferAsList().