cobra.utils.logging
Module Contents
Functions
|
Set logging configurations for the runtime environment |
|
Log a message with severity 'CRITICAL'. |
|
Log a message with severity 'DEBUG'. |
|
Log a message with severity 'ERROR'. |
|
Tell logger to empty output buffers. |
Return the level the logger is set at. |
|
Get the custom logger. |
|
|
Log a message with severity 'INFO'. |
|
Set the logger level. |
|
Deprecated name for warning. |
|
Log a message with severity 'WARNING'. |
Attributes
- cobra.utils.logging.CRITICAL
- cobra.utils.logging.DEBUG
- cobra.utils.logging.ERROR
- cobra.utils.logging.INFO
- cobra.utils.logging.NOTSET
- cobra.utils.logging.WARNING
- cobra.utils.logging.basicConfig(filename=None, filemode='w', output_format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s', datefmt='%Y-%m-%d %H:%M:%S', level=INFO)
Set logging configurations for the runtime environment
- cobra.utils.logging.critical(msg, *args, **kwargs)
Log a message with severity ‘CRITICAL’.
- cobra.utils.logging.debug(msg, *args, **kwargs)
Log a message with severity ‘DEBUG’.
- cobra.utils.logging.error(msg, *args, **kwargs)
Log a message with severity ‘ERROR’.
- cobra.utils.logging.flush()
Tell logger to empty output buffers.
- cobra.utils.logging.getEffectiveLevel()
Return the level the logger is set at.
- cobra.utils.logging.getLogger()
Get the custom logger.
- Return type:
- cobra.utils.logging.info(msg, *args, **kwargs)
Log a message with severity ‘INFO’.
- cobra.utils.logging.setLevel(level)
Set the logger level.
- cobra.utils.logging.warn(msg, *args, **kwargs)
Deprecated name for warning.
- cobra.utils.logging.warning(msg, *args, **kwargs)
Log a message with severity ‘WARNING’.