Code coverage report for core/src/log/log-provider.ts

Statements: 83.33% (5 / 6)      Branches: 100% (1 / 1)      Functions: 50% (1 / 2)      Lines: 100% (5 / 5)      Ignored: none     

All files » core/src/log/ » log-provider.ts
1 2 3 4 5 6 7 81   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);
}