Logging
Logs can be persisted to the filesystem.
- If
[log]is omitted orfileis empty, logs go to the terminal only - If
fileis set, logs are written to both the terminal and the file - The file is rotated daily; backups older than
maxDaysare deleted
Note
Log settings take effect only at process startup and do not support hot reload.
Example: Client
# orbien.toml
[log]
file = "./orbien.log"
level = "info"
maxDays = 3
Example: Server
# orbien-server.toml
[log]
file = "./orbien-server.log"
level = "info"
maxDays = 3
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
file | No | Log file path; empty means logs are not persisted | |
level | No | info | trace / debug / info / warn / error |
maxDays | No | 3 | Days to keep rotated backups; 0 means never delete |