Hapi Bunyan
This a simple Bunyan plugin for Hapi.
Documentation
Options
- logger (Object): Bunyan logger object
- handler (Function, optional): custom event handler, this function can return
true
if it handled the event. - skipUndefined (Boolean, default: true): don't log events with
undefined
data. - includeData (Boolean, default: true): include data in log events.
- mergeData (Boolean, default: false): when the event data is an object merge it into the log data.
- includeTags (Boolean, default: false): include tags in log event.
- joinTags (String, optional): join tags using the specified character.
Example
var bunyan = ;var hapi = ;var server = ;server;server;var config =register:options:logger: bunyan;server;serverstart;
License
This work is licensed under the MIT License (see the LICENSE file).