lib/helpers/bunyan.js
function createLogger(name) {
    return (bunyan.createLogger({
        name: name,
        serializers: SERIALIZERS,
        streams: [
            {
                level: 'warn',
                stream: process.stderr
            },
            {
                level: 'debug',
                type: 'raw',
                stream: new RequestCaptureStream({
                    stream: process.stderr
                })
            }
        ]
    }));
}
function createLogger(name) {
    return (bunyan.createLogger({
        name: name,
        serializers: SERIALIZERS,
        streams: [
            {
                level: 'warn',
                stream: process.stderr
            },
            {
                level: 'debug',
                type: 'raw',
                stream: new RequestCaptureStream({
                    stream: process.stderr
                })
            }
        ]
    }));
}
function createLogger ( name ) { return ( bunyan . createLogger ( { name : name , serializers : SERIALIZERS , streams : [ { level : 'warn' , stream : process . stderr } , { level : 'debug' , type : 'raw' , stream : new RequestCaptureStream ( { stream : process . stderr } ) } ] } ) ) ; }
create a bunyan logger
@public
@function createLogger
@param    {String}     name of the logger
@returns  {Object}          bunyan logger
create a bunyan logger