Logger
Benthos logging prints to stdout (or stderr if your output is stdout) and is formatted as logfmt by default. Use these configuration options to change both the logging formats as well as the destination of logs.
- Logfmt to Stdout
- JSON to File
logger:
level: INFO
format: logfmt
add_timestamp: false
static_fields:
'@service': benthos
logger:
level: WARN
format: json
file:
path: ./logs/benthos.ndjson
rotate: true
Fields
level
Set the minimum severity level for emitting logs.
Type: string
Default: "INFO"
Options: OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL, NONE.