import { LogRecord , Logger , LogMeta } from '@osd/logging' ; internal export class LoggerAdapter implements Logger { constructor ( private logger ) { } internal public updateLogger ( logger ) { this . logger = logger ; } public trace ( message , meta ? ) { this . logger . trace ( message , meta ) ; } public debug ( message , meta ? ) { this . logger . debug ( message , meta ) ; } public info ( message , meta ? ) { this . logger . info ( message , meta ) ; } public warn ( errorOrMessage , meta ? ) { this . logger . warn ( errorOrMessage , meta ) ; } public error ( errorOrMessage , meta ? ) { this . logger . error ( errorOrMessage , meta ) ; } public fatal ( errorOrMessage , meta ? ) { this . logger . fatal ( errorOrMessage , meta ) ; } public log ( record ) { this . logger . log ( record ) ; } public get ( ... contextParts ) { return this . logger . get ( ... contextParts ) ; } }