logging_config¶
logging_config ¶
Centralized logging configuration for Alkiviades.
setup_logging ¶
Configure root logger with console and optional rotating file handler.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
log_file
|
str | None
|
Path to log file. If None, only console logging is used. |
None
|
level
|
int
|
Logging level (default INFO). |
INFO
|
In production (Render), structured JSON lines are logged to stdout. In development, a rotating file handler keeps up to 3 files × 10 MB.
tail_log ¶
Return the last N lines of the log file.