module
lbsLoggingThis module contains logging utility method to create and get loggers
Classes
- class CustomFormatter
- Formatter able to write colored logs.
Functions
- def get_logger(name: str = 'root', level: typing.Optional[str] = 'info', log_to_console: bool = True, log_to_file: typing.Optional[str] = None, frmt: str = 'basic') -> logging.Logger
- Return a new or an existing logger.
Data
- FORMATS = ['basic', 'extended']
- FORMAT_BASIC = 'basic'
- FORMAT_EXTENDED = 'extended'
- LOGGING_LEVEL = {'DEBUG': 10, 'INFO': 20, 'WARNING': 30, 'ERROR': 40, 'FATAL': 50}
- loggers = {}