lstautorta.utils.logging
Functions:
| Name | Description |
|---|---|
init_logging |
(Re-)initialize all loggers (Stream and file logger) |
log_uncaught_exceptions |
Makes all uncaught exception to be logged by the default logger. |
init_logging
(Re-)initialize all loggers (Stream and file logger)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
log_level
|
(str, Optional)
|
Log level of python logging's module to apply to all loggers. Default: DEBUG |
'DEBUG'
|
log_filename
|
(str, Optional)
|
Path to the log file for the file logger. Default "" |
''
|
format_title
|
(str, Optional)
|
Log line format "title" field. Default "LST AUTO RTA" |
'LST AUTO RTA'
|
Source code in src/lstautorta/utils/logging.py
log_uncaught_exceptions
Makes all uncaught exception to be logged by the default logger.
Keyboard exceptions and children classes are not logged so one can kill the program with ctr+C.