0.0.1 • Published 8 years ago

stash-logger v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

Stash Logger

npm install stash-logger
import StashLogger from 'stash-logger';

const myLogger = new StashLogger({
  endpoint: '/my/logs/go/here',
  appId: 'my-awesome-app'
});

myLogger.error('Bad stuff happened');
// ^ adds to the buffer which will group messages to send off

myLogger.errorImmediately('Really bad stuff happened');
// ^ sends this log off without waiting in the buffer