UNPKG

yimultiscreenserver-sdk-web

Version:

YiMultiScreenServer SDK for Web

24 lines (18 loc) 567 B
import { DefaultLogger } from "./DefaultLogger"; import { ISDKLogger } from "./ISDKLogger"; export class SDKLog { static impl: ISDKLogger = new DefaultLogger(); static setImpl(impl: ISDKLogger): void { if (null === impl) return; SDKLog.impl = impl; } static i(tag: string, log: string): void { SDKLog.impl.i(tag, log); } static d(tag: string, log: string): void { SDKLog.impl.d(tag, log); } static e(tag: string, log: string): void { SDKLog.impl.e(tag, log); } }