Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.util.Log;

public class Main {
    private static final String TAG = "LogUtil";
    private static boolean isShow = true;

    public static void w(String tag, String msg) {
        if (isShow) {
            Log.w(tag, msg);
        }
    }

    public static void w(String msg) {
        if (isShow) {
            Log.w(TAG, msg);
        }
    }

    public static void w(String tag, String msg, Exception e) {
        if (isShow) {
            Log.w(tag, msg, e);
        }
    }
}