Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
fluent-logger-node is a structured event logger for Fluent
JavaScript
Tag: v0.0.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

Fluent Logger Node.js

fluent-logger-node is a structured event logger for Fluent.

Build Status

Requirements

  • Node.js v0.6 or higher
  • fluentd

Installation

npm install fluent-logger-node

Usage

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!"}

License

The MIT License

Contributors

  • Dai Akatsuka
  • Minoru Takase
Something went wrong with that request. Please try again.