pioppo
v1.2.0
Published
A tiny isomorphic batched logger. ~3x faster than regular logging in Node.
Downloads
81,133
Maintainers
Readme
Pioppo
A tiny isomorphic batched logger. ~3x faster than regular logging in Node.
Install
npm install --save pioppo
Usage
import Pioppo from 'pioppo';
const pioppo = new Pioppo ({
transports: [console]
});
// Logging some messages
pioppo.debug ( 'Some message' );
pioppo.info ( 'Some message' );
pioppo.warn ( 'Some message' );
pioppo.error ( 'Some message' );
// Flushing messages immediately
pioppo.flush ();
License
MIT © Fabio Spampinato