import { DebugLogger } from './debug-logger' ; import { Logger } from './logger' ; export type LoggerFactory = ( target : string ) => Logger ; const defaultLoggers = { } ; export const defaultLoggerFactory = ( target ) => { if ( ! defaultLoggers [ target ] ) { defaultLoggers [ target ] = new DebugLogger ( target ) ; } return defaultLoggers [ target ] ; } ;