import { Provider } from '@loopback/core' ; import { ILogger } from '../logger.interface' ; import { WinstonConsoleLogger } from '../winston/logger-console' ; export class LoggerProvider implements Provider < ILogger > { constructor ( ) { this . logger = new WinstonConsoleLogger ( ) ; } logger : ILogger ; value ( ) { return this . logger ; } }