Module traceon.logging
Functions
def set_log_level(level)
-
Set the current
LogLevel
. Note that the log level can also be set by setting the environment value TRACEON_LOG_LEVEL to one of 'debug', 'info', 'warning', 'error' or 'silent'.
Classes
class LogLevel (value, names=None, *, module=None, qualname=None, type=None, start=1)
-
Enumeration representing a certain verbosity of logging.
Expand source code
class LogLevel(IntEnum): """Enumeration representing a certain verbosity of logging.""" DEBUG = 0 """Print debug, info, warning and error information.""" INFO = 1 """Print info, warning and error information.""" WARNING = 2 """Print only warnings and errors.""" ERROR = 3 """Print only errors.""" SILENT = 4 """Do not print anything."""
Ancestors
- enum.IntEnum
- builtins.int
- enum.Enum
Class variables
var DEBUG
-
Print debug, info, warning and error information.
var ERROR
-
Print only errors.
var INFO
-
Print info, warning and error information.
var SILENT
-
Do not print anything.
var WARNING
-
Print only warnings and errors.