package com.elderdrivers.riru.xposed.util;

import android.util.Log;

import com.elderdrivers.riru.xposed.BuildConfig;


public class Utils {

    public static final String LOG_TAG = "EdXposed-Fwk";

    public static void logD(Object msg) {
        if (BuildConfig.DEBUG)
            Log.d(LOG_TAG, msg.toString());
    }

    public static void logD(String msg, Throwable throwable) {
        if (BuildConfig.DEBUG)
            Log.d(LOG_TAG, msg, throwable);
    }

    public static void logW(String msg) {
        Log.w(LOG_TAG, msg);
    }

    public static void logW(String msg, Throwable throwable) {
        Log.w(LOG_TAG, msg, throwable);
    }

    public static void logI(String msg) {
        Log.i(LOG_TAG, msg);
    }

    public static void logI(String msg, Throwable throwable) {
        Log.i(LOG_TAG, msg, throwable);
    }

    public static void logE(String msg) {
        Log.e(LOG_TAG, msg);
    }

    public static void logE(String msg, Throwable throwable) {
        Log.e(LOG_TAG, msg, throwable);
    }
}
