2.4.5 • Published 5 years ago

logtown-plugin-pretty-error v2.4.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

npm.io npm.io