Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Latest commit

 

History

History
24 lines (23 loc) · 729 Bytes

File metadata and controls

24 lines (23 loc) · 729 Bytes

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.