logging
strands_teams.logging ¶
Common logging configuration using loguru.
Adapted verbatim from the pre-split code_context_agent.utils.logging. Domain-agnostic: no use-case vocabulary.
setup_logger ¶
Configure loguru logger with a standard format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
level | str | Log level (DEBUG, INFO, WARNING, ERROR). | 'INFO' |
log_file | str | None | Optional file path for logging output. | None |
Source code in packages/strands-teams/src/strands_teams/logging.py
get_logger ¶
Get a logger instance bound to a specific module name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name | str | Module name (typically | required |
Returns:
| Type | Description |
|---|---|
Logger | Bound logger instance. |