Potku  1.0.0
Class Documentation
 All Classes Namespaces Functions
Modules.UiLogHandlers.customLogHandler Class Reference

Inherits Handler.

Public Member Functions

def __init__
 
def flush
 
def emit
 

Public Attributes

 log_dialog
 
 formatter
 
 level
 

Detailed Description

Customloghandler, that handles log messages and emits them to the given 
LogWidget's log field. 

Constructor & Destructor Documentation

def Modules.UiLogHandlers.customLogHandler.__init__ (   self,
  level,
  formatter,
  log_dialog 
)
Initializes the handler.

Args:
    level: The logging level set to this handler.
    formatter: The formatter set to this handler.
    log_dialog: The log dialog, which can add the message to the interface.

Member Function Documentation

def Modules.UiLogHandlers.customLogHandler.emit (   self,
  record 
)
Emits the log message to the destination, which is set when the handler 
is initialized.

Args:
    record: The record which will be emitted.
def Modules.UiLogHandlers.customLogHandler.flush (   self)
Does nothing here, has to be here because this is inherited.

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