fluent-logger-node is a structured event logger for Fluent.
- Node.js v0.6 or higher
- fluentd
npm install fluent-logger-node
var fluent = require('fluent-logger-node');
var logger = fluent.createLogger();
logger.post("debug.test", {hello: "world!"});
// output: debug.test {"hello":"world!"}
var logger = fluent.createLogger({
host: "127.0.0.1",
port: 24224,
tagPrefix: "app"
});
logger.post("test", {hello: "world!"});
// output: app.test {"hello":"world!"}
The MIT License
- Dai Akatsuka
- Minoru Takase