PyPO User Manual
CustomLogger.py File Reference

This file contains class definitions of the custom logger objects used in PyPO. More...

Classes

class  PyPO.CustomLogger.CustomFormatter
 Class for formatting of the logging from the terminal. More...
 
class  PyPO.CustomLogger.CustomGUIFormatter
 Class for formatting of the logging to the GUI console. More...
 
class  PyPO.CustomLogger.CustomLogger
 Class for instantiating a logger object for the terminal. More...
 
class  PyPO.CustomLogger.GUILogger
 Utility class for creating GUI loggers. More...
 
class  PyPO.CustomLogger.CustomGUILogger
 Class for instantiating a GUI logger. More...
 

Functions

def PyPO.CustomLogger.addLoggingLevel (levelName, levelNum, methodName=None)
 Add a new logging level. More...
 

Detailed Description

This file contains class definitions of the custom logger objects used in PyPO.

A distinction is made for logging in the terminal and in the GUI.

Function Documentation

◆ addLoggingLevel()

def PyPO.CustomLogger.addLoggingLevel (   levelName,
  levelNum,
  methodName = None 
)

Add a new logging level.

This method takes a name and levelnumber and adds this to the customlogger. Note that a level may only be added once per session, otherwise Python will complain about a certain levelname already being added.

Parameters
levelNameName of the new level.
levelNumLevel number of the new level
methodNameName of method associated with new level.