import { ILogSink , LogDomain , LogLevel } from '.' ; export default class ConsoleLogSink implements ILogSink { log ( level , domain , message ) { console . log ( `${ niceLogLevels [ level ] } (${ domain }) ${ message }` ) ; } } const niceLogLevels = { [ LogLevel . Info ] : '[INFO] ' , [ LogLevel . Warn ] : '[WARN] ' , [ LogLevel . Error ] : '[ERROR]' , [ LogLevel . Never ] : '[-]    ' , } ;