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... | |
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.
| 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.
| levelName | Name of the new level. |
| levelNum | Level number of the new level |
| methodName | Name of method associated with new level. |