UNPKG

jspurefix

Version:
31 lines (27 loc) 659 B
export interface IJsFixLogger { info (message: string): void warning (message: string): void debug (message: string): void error (e: Error): void } export interface GetJsFixLogger { (type: string): IJsFixLogger } export class EmptyLogger implements IJsFixLogger { constructor (public readonly type: string = '') { } public info (message: string) { // nothing } public warning (message: string) { // nothing } public debug (message: string) { // nothing } public error (error: Error) { // nothing } } export function makeEmptyLogger (type: string) { return new EmptyLogger(type) }