winston-fluent

0.1.0 • Public • Published

winston-fluent

A fluent transport for winston.

Installation

Installing npm (node package manager)

  $ curl http://npmjs.org/install.sh | sh

Installing winston-syslog

  $ npm install winston 
  $ npm install winston-fluent

Usage

  var winston = require('winston');
  
  //
  // Requiring `winston-fluent` will expose 
  // `winston.transports.Fluent`
  //
  require('winston-syslog').Fluent;
  
  winston.add(winston.transports.Fluent, options);

The Fluent transport uses fluent-logger. Options are following and will be passed to it.

  • tag: Required. Tag of fluent-logger. This will be used as the first parameter of FluentSender constructor.
  • options: Optional. Params to connect to fluent.(ex. { host: 'localhost', port: 24224, timeout: 3.0, verbose: false }) This will be used as the second parameter of FluentSender constructor.
  • label: Required. Label of each log.

Readme

Keywords

none

Package Sidebar

Install

npm i winston-fluent

Weekly Downloads

6

Version

0.1.0

License

MIT

Last publish

Collaborators

  • sakamoto-san