Reference
Scribe
Scribe module utilities and functionality.
Scribe
Scribe logger wrapper for maxim. Log level is managed externally via set_level or the standard logging API. By default, the logger uses the global logging configuration.
__init__
Initialize a scribe logger.
Arguments:
Name | Description |
---|---|
name | The name of the logger. |
debug
Log a debug message.
Arguments:
Name | Description |
---|---|
msg | The message to log. |
*args | The arguments to log. |
**kwargs | The keyword arguments to log. |
warning
Log a warning message.
Arguments:
Name | Description |
---|---|
msg | The message to log. |
*args | The arguments to log. |
**kwargs | The keyword arguments to log. |
log
Log a message.
Arguments:
Name | Description |
---|---|
level | The level of the message. |
msg | The message to log. |
*args | The arguments to log. |
**kwargs | The keyword arguments to log. |
silence
Silence the logger.
This method sets the logger level to CRITICAL + 1.
error
Log an error message.
Arguments:
Name | Description |
---|---|
msg | The message to log. |
*args | The arguments to log. |
**kwargs | The keyword arguments to log. |
info
Log an info message.
Arguments:
Name | Description |
---|---|
msg | The message to log. |
*args | The arguments to log. |
**kwargs | The keyword arguments to log. |
get_level
Get the level of the logger.
Returns:
Name | Description |
---|---|
int | The level of the logger. |
set_level
Set the level of the logger.
Arguments:
Name | Description |
---|---|
level | The level to set. |