Logging
any_agent.logging.setup_logger(level=logging.ERROR, rich_tracebacks=True, log_format=None, propagate=False, **kwargs)
Configure the any_agent logger with the specified settings.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level
|
int
|
The logging level to use (default: logging.INFO) |
ERROR
|
rich_tracebacks
|
bool
|
Whether to enable rich tracebacks (default: True) |
True
|
log_format
|
str | None
|
Optional custom log format string |
None
|
propagate
|
bool
|
Whether to propagate logs to parent loggers (default: False) |
False
|
**kwargs
|
Any
|
Additional keyword arguments to pass to RichHandler |
{}
|