Documentation Index
Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
View module source on GitHub
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
def debug(msg, *args, **kwargs)
Log a debug message.
Arguments:
| Name | Description |
|---|
msg | The message to log. |
*args | The arguments to log. |
**kwargs | The keyword arguments to log. |
warning
def warning(msg, *args, **kwargs)
Log a warning message.
Arguments:
| Name | Description |
|---|
msg | The message to log. |
*args | The arguments to log. |
**kwargs | The keyword arguments to log. |
log
def log(level, msg, *args, **kwargs)
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
def error(msg, *args, **kwargs)
Log an error message.
Arguments:
| Name | Description |
|---|
msg | The message to log. |
*args | The arguments to log. |
**kwargs | The keyword arguments to log. |
info
def info(msg, *args, **kwargs)
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. |