Qudi
Public Member Functions | Static Public Attributes | List of all members
core.logger.QtLogHandler Class Reference

Log handler for displaying log records in a QT gui. More...

Inheritance diagram for core.logger.QtLogHandler:
Inheritance graph
[legend]
Collaboration diagram for core.logger.QtLogHandler:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, parent=None, level=0)
 
def emit (self, record)
 Emit function of handler. More...
 

Static Public Attributes

 sigLoggedMessage = QtCore.Signal(object)
 

Detailed Description

Log handler for displaying log records in a QT gui.

For each log record the Qt signal sigLoggedMessage is emitted with a dictionary as parameter. The keys of this dictionary are:

Parameters
objectparent: parent of QObject, defaults to None
intlevel: log level, defaults to NOTSET

Member Function Documentation

◆ emit()

def core.logger.QtLogHandler.emit (   self,
  record 
)

Emit function of handler.

Formats the log record and emits :sigLoggedMessage:

Parameters
objectrecord: :logging.LogRecord:

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