gluestick-plugin-bunyan
v4.6.6
Published
Plugin for supporting Bunyan in GlueStick project
Downloads
45
Keywords
Readme
gluestick-plugin-bunyan
This plugin allows you to use bunyan as a logger.
How to use
- Install plugin
npm install --save gluestick-plugin-bunyan
- Define plugin in
src/gluestick.plugins.js
:
export default ['gluestick-plugin-bunyan'];
- Add file in src/ folder called
bunyan.config.js
and add configuration in it
export default {
name: <string>, // Required
level: <level name or number>,
stream: <node.js stream>,
streams: [<bunyan streams>, ...],
serializers: <serializers mapping>,
src: <boolean>,
};
Here you can read more about options.