Skip to content

1024kilobyte/meteor-winston-logentries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A Winston Logentries transport for Meteor.

Resources

License

Stars

Watchers

Forks

Packages

No packages published