npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

logtown-plugin-pretty-error

2.4.5 • Public • Published

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

install

npm i logtown-plugin-pretty-error

Downloadsweekly downloads

11

version

2.4.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability