Loading
The logging section of aerospike-kafka-outbound.yml
The logging
section of the /etc/aerospike-kafka-outbound/aerospike-kafka-outbound.yml
controls log output. Generated
log files are rotated daily. Logs for the previous 30 days are retained by default.
Option | Required | Default | Description |
---|---|---|---|
file | No | N/A | Output log file path. Rotated logs are placed in the same folder as this log file. |
enable-console-logging | No | false | When true and a log file is specified, logging is sent to both the console and the log file. enable-console-logging is false by default, but it is forced to true if a log file is not specified. |
max-history | No | 30 | Maximum number of log files to retain. |
levels | No | N/A | Map from logger name to its log level. Valid log levels are error , warn , info , debug , and trace . |
ticker-interval | No | 10 | Ticker log interval in seconds. |
format | No | simple | Format of the log. See Logging formats for details. |
Logging formats
Logs can be output in one of the following logging formats:
Format | Description |
---|---|
simple | Simple space delimited format of a log line. |
json | JSON formatted logs. |
Example
logging:
file: /var/log/aerospike-kafka-outbound/aerospike-kafka-outbound.log
levels:
root: info # Set default logging level to info.
record-parser: debug # The Aerospike record parser class.
server: debug # The server class logs.
com.aerospike.connect: debug # Set all the classes to default log level.
com.kafka.clients: warn # Set the config level at Kafka producer/client module to warning level.