npm.io
2.4.5 • Published 8 years ago

logtown-plugin-pretty-error

Licence
MIT
Version
2.4.5
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
32
DeprecatedThis package is deprecated

logtown-plugin-pretty-error

Logtown plugin leveraging pretty-error

Installation

yarn add logtown-plugin-pretty-error 

or

npm install logtown-plugin-pretty-error

Usage

const logtown = require('logtown');
const prettyError = require('logtown-plugin-pretty-error');
const Winston = require('logtown-winston3');

logtown.addPlugin(prettyError({}));
logtown.addWrapper(new Winston());

const logger = logtown.getLogger('happy-logging');
logger.error(new Error('Hello World'));

For reference of pretty-error usage see pretty-error docs

License

logtown-plugin-pretty-error is released under the MIT license.

Donate

Keywords