logtown-plugin-dumper-js
v2.4.5
Published
Logtown plugin leveraging dumper.js library
Downloads
7
Maintainers
Readme
logtown-plugin-dumper-js
Logtown plugin leveraging dumper.js library
Installation
yarn add logtown-plugin-dumper-js
or
npm install logtown-plugin-dumper-js
Usage
const logtown = require('logtown');
const dumperjs = require('logtown-plugin-dumper-js');
const Winston = require('logtown-winston3');
logtown.addPlugin(dumperjs());
logtown.addWrapper(new Winston());
const logger = logtown.getLogger('happy-logging');
logger.info([
{ user: 'barney', age: 36, active: true, createdAt: new Date(), getAge: () => this.age },
{ user: 'fred', age: 40, active: false, createdAt: new Date(), getAge: () => this.age },
{ user: 'pebbles', age: 1, active: true, createdAt: new Date(), getAge: () => this.age }
]);
For reference of dumper.js usage see dumper.js docs
License
logtown-plugin-dumper-js is released under the MIT license.