- stderr and null drivers; per-component levels from log.components - SUMMER_LOG__ overrides parse as strings and overlay the defaults key by key - Validation names the key: driver, format, level, days, stack children and cycles, daily path outside the root - summer new writes config/log.yaml (stack of console and daily, river warn, http info) - docs/services/logging.md: channels, config/log.yaml, component loggers, daily files, redaction - Log keys in the configuration docs; ExampleFor backs the docs snippet
27 lines
824 B
Plaintext
27 lines
824 B
Plaintext
# Logging, shaped like Laravel's config/logging.php: records go to the
|
|
# default channel, and a stack sends them to several channels at once.
|
|
# Override any key with a SUMMER_LOG__ variable, a double underscore
|
|
# separating path segments: SUMMER_LOG__CHANNELS__DAILY__DAYS=30.
|
|
default: stack
|
|
level: info
|
|
channels:
|
|
stack:
|
|
driver: stack
|
|
channels: [console, daily]
|
|
console:
|
|
# auto: styled lines on a terminal, logfmt otherwise (systemd, Docker);
|
|
# json writes JSON lines instead.
|
|
driver: console
|
|
format: auto
|
|
daily:
|
|
# One file per day under storage/logs (summer-YYYY-MM-DD.log), kept 14 days.
|
|
driver: daily
|
|
path: storage/logs/summer.log
|
|
days: 14
|
|
format: json
|
|
level: warn
|
|
components:
|
|
# Per-component levels. http: warn silences the request log.
|
|
river: warn
|
|
http: info
|