import * as winston from 'winston' ; export const loggerOptions = { level : 'info' , format : winston . format . cli ( ) , transports : [ new winston . transports . Console ( ) , ] , } ; export const logger = winston . createLogger ( loggerOptions ) ; export const logStdout = ( data ) => logger . info ( `stdout: ${ String ( data ) }` ) ;