mailgun / kafka-pixy

gRPC/REST proxy for Kafka
Apache License 2.0
773 stars 118 forks source link

PIP-746: Added 'json' logging handler #179

Closed thrawn01 closed 4 years ago

thrawn01 commented 4 years ago

Purpose

kafka-pixy now supports context based logging via stdout, additionally you can configure logging via yaml file passed via -config

# A list of defined loggers, multiple loggers are allowed and 
# each log line will be sent to every logger defined
logging:
  # Logs to stdout in a JSON format
  - name: json
    severity: info
  # Logs to stdout in human readable format
  - name: console
    severity: info
  # Logs to kafka topic in JSON format
  - name: udplog
    severity: error
  # Logs to syslog
  - name: syslog
    severity: debug

Implementation