Logger
wingpy.logger
¶
logger
¶
logger = Logger(
core=Core(),
exception=None,
depth=0,
record=False,
lazy=False,
colors=False,
raw=False,
capture=True,
patchers=[],
extra={},
)
log_exception
¶
log_exception(
exception: Exception,
severity: Literal[
"TRACE",
"DEBUG",
"INFO",
"SUCCESS",
"WARNING",
"ERROR",
"CRITICAL",
] = "ERROR",
) -> None
Log the exception message using the wingpy logger.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
severity
|
str
|
The severity level to log the message at. Default is 'ERROR'. |
'ERROR'
|