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

Package Sidebar

Install

npm i logtown-plugin-pretty-error

Weekly Downloads

1

Version

2.4.5

License

MIT

Unpacked Size

4.05 kB

Total Files

6

Last publish

Collaborators

  • hunterman