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.
Asked
Active
Viewed 1,226 times
1 Answers
-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