import bunyan from 'bunyan' ; import bunyanDebugStream from 'bunyan-debug-stream' ; const stream = bunyanDebugStream ( { showDate : process . env . NODE_ENV !== 'production' , showProcess : false , showLoggerName : false , showPid : false , showLevel : process . env . NODE_ENV === 'production' , } ) ; export const log = bunyan . createLogger ( { name : 'npm-search' , streams : [ { level : 'info' , type : 'raw' , stream , } , ] , serializers : bunyanDebugStream . serializers , } ) ;