import * as winston from "winston" ; const logger = winston . createLogger ( { format : winston . format . combine ( winston . format . timestamp ( ) , winston . format . printf ( ( { level , message , timestamp } ) => { return `${ timestamp } ${ level }: ${ message }` ; } ) ) , transports : [ new winston . transports . Console ( ) , new winston . transports . File ( { filename : "combined.log" } ) , ] , } ) ; export default logger ;