stash-logger
v0.0.1
Published
buffered/contextual logger
Downloads
4
Maintainers
Readme
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