import { LoggerService } from '@nestjs/common' ; import { Logger } from './Logger' ; const DEFAULT_LOGGER_NAME = 'bootstrap' ; export class BootstrapLogger implements LoggerService { private logger : Logger ; constructor ( private readonly label ? ) { this . logger = new Logger ( this . label ? this . label : DEFAULT_LOGGER_NAME ) ; } public log ( message , context ? ) { this . logger . info ( message ) ; } public error ( message , trace ? , context ? ) { this . logger . error ( message ) ; } public warn ( message , context ? ) { this . logger . error ( message ) ; } }