Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

tag: v0.0.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.