LOG4JS KAFKA APPENDER
Kafka appender for log4js.
Install
npm install --save log4js-Kafka-appender
Usage
const log4js = ;log4js;log4js;
options
- host: zookeeper host, default localhost
- port: zookeeper port, default 2181
- topic: the topic to send, no default, must config one.
- level: send the log if level is higher than this level.
- converter: custom logging event converter for customizing your data, default as above.
Levels
The same to log4js Levels, such as ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < MARK < OFF
Developed by Luto