Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.11 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.11 KB

Meteor-Winston-Loggly

A wrapper around winston-loggly for using Loggly transport with winston for use with Meteorite ontop of Meteor :)

##Install mrt add winston-loggly

##Usage

Winston is exposed as:

Winston

And loggly transport is exposed as:

Winston_Loggly

so it can be used as follows:

var options = {
  "level": "info",
  "subdomain": "<loggly subdomain>",
  "auth": {
    "username": "<loggly username>",
    "password": "<loggly password>"
  },
  "inputToken":"<loggly input token>",
  "json": true,
  "handleExceptions": true
};

Winston.add(Winston_Loggly, options);
Winston.info('Added winston loggly transport');

See winston-loggly documentation for more details.

Other related projects: