Logger
Redpanda Connect 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.
-
Common
-
Advanced
# Common config fields, showing default values
logger:
level: INFO
format: logfmt
add_timestamp: false
static_fields:
'@service': benthos
# All config fields, showing default values
logger:
level: INFO
format: logfmt
add_timestamp: false
level_name: level
timestamp_name: time
message_name: msg
static_fields:
'@service': benthos
file:
path: ""
rotate: false
rotate_max_age_days: 0
Fields
The schema of the logger
section is as follows:
level
Set the minimum severity level for emitting logs.
Type: string
Default: "INFO"
Options:
OFF
, FATAL
, ERROR
, WARN
, INFO
, DEBUG
, TRACE
, ALL
, NONE
.
level_name
The name of the level field added to logs when the format
is json
.
Type: string
Default: "level"
timestamp_name
The name of the timestamp field added to logs when add_timestamp
is set to true
and the format
is json
.
Type: string
Default: "time"
message_name
The name of the message field added to logs when the format
is json
.
Type: string
Default: "msg"
static_fields
A map of key/value pairs to add to each structured log.
Type: object
Default: {"@service":"benthos"}