caf.toolkit.log_helpers#
Helper functions for creating and managing a logger.
This module is designed to initialise Python logging consistently and automatically log tool and system information.
Classes#
- LogHelper
Main context manager class for creating and managing loggers and logging key tool / system information.
- TemporaryLogFile
Context manager for adding a log file handler to a logger and removing it when done.
Functions
|
Capture warnings using logging. |
|
Create a console handles for a logger. |
|
Create a standard logger using the CAF template. |
|
Create a console handles for a logger. |
|
Create a standard logger using the CAF template. |
|
Write tool and system information to logger. |
|
Write an instantiation message to logger. |
Classes
|
Add context-specific metadata to a type. |
|
Special type indicating an unconstrained type. |
|
Class for managing Python loggers. |
|
Information about the PC and Python version. |
|
Add temporary log file to a logger. |
|
Information about the current tool. |
Exceptions
Warnings from |