import { ILogger , LogTypes } from './Interfaces' ; let logger ; export function init ( loggerInstance ) { logger = loggerInstance ; } export function getInstance ( ) { if ( logger === undefined ) { throw new Error ( 'LoggerProxy not initialized' ) ; } return logger ; } export function log ( type , message , meta = { } ) { getInstance ( ) . log ( type , message , meta ) ; } export function debug ( message , meta = { } ) { getInstance ( ) . log ( 'debug' , message , meta ) ; } export function info ( message , meta = { } ) { getInstance ( ) . log ( 'info' , message , meta ) ; } export function error ( message , meta = { } ) { getInstance ( ) . log ( 'error' , message , meta ) ; } export function verbose ( message , meta = { } ) { getInstance ( ) . log ( 'verbose' , message , meta ) ; } export function warn ( message , meta = { } ) { getInstance ( ) . log ( 'warn' , message , meta ) ; }