Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 878 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 878 Bytes

meteor-winston-logentries

A wrapper for winston-logentries as a transport for winston. Use Logentries as a log service for your Meteor app. Thanks to @stuartfenton for the inspiration who did the same for Papertrail with meteor-winston-papertrail.

Install

meteor add 1024kilobyte:winston-logentries

Usage

It's as simple as

if(Meteor.isServer) {
  //creating a global server logger
  log = Winston;

  //add logentries transport
  log.add( Winston_Logentries, {
    token:'YOUR_TOKEN'
  });
}

After that you can check if it's working

log.info("======> Meteor App restarted " + new Date() + " <======");

Have fun!