logtown-plugin-pretty-error
v2.4.5
Published
Logtown plugin leveraging pretty-error library
Downloads
11
Maintainers
Readme
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.