1 2 3 4 5 6 7 8 | 1 1 1 1 1 | import {Log} from './log';
import {Supplier} from '../util';
import {Providers} from '../providers';
import {ConsoleLog} from './ConsoleLog';
export function logProvider(orRegister: Supplier<Log> = (): Log => ConsoleLog.create()): Log {
return Providers.provide<Log>(Log, orRegister);
} |