import { LoggerConfiguration } from '@config/logger.config' ; import { Logger as WinstonLogger } from 'winston' ; /**
 * Log service
 */ class Logger { description private static instance : Logger ; description engine : WinstonLogger ; private constructor ( engine ) { this . engine = engine ; } static get ( engine ) { if ( ! Logger . instance ) { Logger . instance = new Logger ( engine ) ; } return Logger . instance ; } description param level param message log ( level , message ) { this . engine [ level ] ( message ) ; } } const logger = Logger . get ( LoggerConfiguration . logger ) ; export { logger as Logger } ;