package com.tencent.mm.plugin.zero;

import android.os.Process;
import com.tencent.e.a.b.a;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.ytcommon.BuildConfig;

class PluginZero$3 implements a {
    final /* synthetic */ PluginZero uZW;

    PluginZero$3(PluginZero pluginZero) {
        this.uZW = pluginZero;
    }

    public final void println(int i, String str, String str2) {
        AppMethodBeat.i(58749);
        if (isLoggable(str, i)) {
            ab.a dos = ab.dos();
            int myPid = Process.myPid();
            int myTid = Process.myTid();
            switch (i) {
                case 2:
                    dos.logV(str, BuildConfig.FLAVOR, BuildConfig.FLAVOR, 0, myPid, (long) myTid, (long) myPid, str2);
                    AppMethodBeat.o(58749);
                    return;
                case 3:
                    dos.logD(str, BuildConfig.FLAVOR, BuildConfig.FLAVOR, 0, myPid, (long) myTid, (long) myPid, str2);
                    AppMethodBeat.o(58749);
                    return;
                case 4:
                    dos.logI(str, BuildConfig.FLAVOR, BuildConfig.FLAVOR, 0, myPid, (long) myTid, (long) myPid, str2);
                    AppMethodBeat.o(58749);
                    return;
                case 5:
                    dos.logW(str, BuildConfig.FLAVOR, BuildConfig.FLAVOR, 0, myPid, (long) myTid, (long) myPid, str2);
                    AppMethodBeat.o(58749);
                    return;
                case 6:
                    dos.logE(str, BuildConfig.FLAVOR, BuildConfig.FLAVOR, 0, myPid, (long) myTid, (long) myPid, str2);
                    AppMethodBeat.o(58749);
                    return;
                case 7:
                    dos.logF(str, BuildConfig.FLAVOR, BuildConfig.FLAVOR, 0, myPid, (long) myTid, (long) myPid, str2);
                    AppMethodBeat.o(58749);
                    return;
                default:
                    AppMethodBeat.o(58749);
                    return;
            }
        }
        AppMethodBeat.o(58749);
    }

    public final boolean isLoggable(String str, int i) {
        AppMethodBeat.i(58750);
        if (i < 2 || i > 7 || PluginZero.access$100()[i] < ab.getLogLevel()) {
            AppMethodBeat.o(58750);
            return false;
        }
        AppMethodBeat.o(58750);
        return true;
    }
}
