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
logger:
level: INFO
format: logfmt
add_timestamp: true
static_fields:
"@service": "redpanda-connect"
logger:
level: INFO
format: logfmt
add_timestamp: true
level_name: level
timestamp_name: time
message_name: msg
static_fields:
"@service": "redpanda-connect"
file:
path: ""
rotate: false
rotate_max_age_days: 0
Fields
file.path
The file path to write logs to, if the file does not exist it will be created. Leave this field empty or unset to disable file based logging.
Type: string
Default: ""
file.rotate_max_age_days
The maximum number of days to retain old log files based on the timestamp encoded in their filename, after which they are deleted. Setting to zero disables this mechanism.
Type: int
Default: 0
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
message_name
The name of the message field added to logs when the format is json.
Type: string
Default: msg