1

Can I get an example to publish the logs to kafka topic. I am currently using uber-go/zap logger and using https://github.com/confluentinc/confluent-kafka-go to publish.

1 Answers1

-1

Check out this project, which provides a log sink for Kafka: https://github.com/jeffzhangme/zapx.

It should be easy to adapt this to use confluent-kafka-go and any other changes as per your requirement looking at the source code for this project.

aayushsarva
  • 472
  • 1
  • 4
  • 9