hpcflow.sdk.log.AppLog#
- class hpcflow.sdk.log.AppLog(app, log_console_level=None)#
Bases:
object
Application log control.
Methods
Add a log file.
Remove all file handlers.
Set the logging level for console messages.
Attributes
Default logging level for the console.
Default logging level for log files.
The application context.
The base logger for the application.
The handler for directing logging messages to the console.
- DEFAULT_LOG_CONSOLE_LEVEL = 'WARNING'#
Default logging level for the console.
- DEFAULT_LOG_FILE_LEVEL = 'INFO'#
Default logging level for log files.
- add_file_logger(path, level=None, fmt=None, max_bytes=None)#
Add a log file.
- app#
The application context.
- console_handler#
The handler for directing logging messages to the console.
- logger#
The base logger for the application.
- remove_file_handlers()#
Remove all file handlers.
- update_console_level(new_level)#
Set the logging level for console messages.