import winston from "winston" ; export const logger = winston . createLogger ( { level : "info" , format : winston . format . json ( ) , defaultMeta : { } , transports : [ new winston . transports . Console ( { format : winston . format . printf ( ( info ) => `${ info . message }` ) , stderrLevels : [ "error" ] , } ) , ] , } ) ;