Skip to content

dakatsuka/fluent-logger-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published