Share and Money Management 0.18devel
Classes | Namespaces | Functions | Variables
log.py File Reference

SMM specific functions and classes to record and print out log messages. More...

Classes

class  gui.log.StringHandler
 Stores the log records as a list of strings. More...
 
class  gui.log.ExceptionFormatter
 Extended formatter to include more exception details automatically. More...
 

Namespaces

namespace  gui
 
namespace  gui.log
 This module provides an own logger class as well as specific functions to improve Pythons logging facility.
 

Functions

def gui.log.init (filename="smm.log", encoding="utf-8", level=None)
 Initialise the logging facility. More...
 
def gui.log.deinit ()
 Reactivate system exception handler. More...
 
def gui.log.getBufferAsList (clean=True)
 Returns all buffered messages. More...
 
def gui.log.getBufferAsString (clean=True)
 Returns all buffered messages. More...
 
def gui.log.flush ()
 Empty the buffer. More...
 
def gui.log.installExceptionHandler ()
 Install own exception handler. More...
 
def gui.log.deinstallExceptionHandler ()
 Restore the original exception handler from sys.__excepthook__. More...
 
def gui.log.exceptionHandler (exc_type, exc_value, exc_tb)
 Logs detailed information about uncaught exceptions. More...
 
def gui.log.getMessage (self)
 Return the message for this LogRecord. More...
 

Variables

 gui.log.stringLoggerInstance = None
 Reference to the active StringHandler instance. More...
 

Detailed Description

SMM specific functions and classes to record and print out log messages.