import { Logger , LogMeta } from '../../../logging' ; export type LogFn = ( path : string [ ] , message : string ) => void ; public export interface SavedObjectsMigrationLogger { debug : ( msg : string ) => void ; info : ( msg : string ) => void ; deprecated warning : ( msg : string ) => void ; warn : ( msg : string ) => void ; error : ( msg : string , meta : LogMeta ) => void ; } export class MigrationLogger implements SavedObjectsMigrationLogger { private logger : Logger ; constructor ( log ) { this . logger = log ; } public info = ( msg ) => this . logger . info ( msg ) ; public debug = ( msg ) => this . logger . debug ( msg ) ; public warning = ( msg ) => this . logger . warn ( msg ) ; public warn = ( msg ) => this . logger . warn ( msg ) ; public error = ( msg , meta ) => this . logger . error ( msg , meta ) ; }