import { createLogger , LoggerOptions , Logger } from 'winston' ; import LoggerProvider from '../../models/LoggerProvider' ; class WinstonProvider implements LoggerProvider { private logger : Logger ; constructor ( config ) { this . logger = createLogger ( config ) ; } log ( level , message , metadata ) { this . logger . log ( level , message , { metadata } ) ; } } export default WinstonProvider ;