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);
    }

}