Android——Log显示日志 显示效果如下: 具体代码实现: public class LogUtil { private static String TAG = "zss"; private static boolean isDebug = true; public static final int DEBUG = 3; public static final int ERROR = 6; public static void init(boolean debug, String tag) { isDebug = debug; TAG = tag; } public static void logDebug(String msg, Object... params) { logDebug(null, msg, params); } public static void logDebug(String tag, String msg, Object[] params) { if (!isDebug) return; LogText.log(getFinalTag(tag), String.format(msg, params), DEBUG); } public static void log