mirror of https://github.com/kurisufriend/Clover
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.7 KiB
75 lines
1.7 KiB
package org.floens.chan.utils;
|
|
|
|
import org.floens.chan.ChanApplication;
|
|
|
|
import android.util.Log;
|
|
|
|
public class Logger {
|
|
public static final String TAG = "Chan";
|
|
public static final String TAG_TEST = "ChanTest";
|
|
|
|
public static void v(String message) {
|
|
Log.v(TAG, message);
|
|
}
|
|
|
|
public static void v(String message, Throwable throwable) {
|
|
Log.v(TAG, message, throwable);
|
|
}
|
|
|
|
public static void d(String message) {
|
|
Log.d(TAG, message);
|
|
}
|
|
|
|
public static void d(String message, Throwable throwable) {
|
|
Log.d(TAG, message, throwable);
|
|
}
|
|
|
|
public static void i(String message) {
|
|
Log.i(TAG, message);
|
|
}
|
|
|
|
public static void i(String message, Throwable throwable) {
|
|
Log.i(TAG, message, throwable);
|
|
}
|
|
|
|
public static void w(String message) {
|
|
Log.w(TAG, message);
|
|
}
|
|
|
|
public static void w(String message, Throwable throwable) {
|
|
Log.w(TAG, message, throwable);
|
|
}
|
|
|
|
public static void e(String message) {
|
|
Log.e(TAG, message);
|
|
}
|
|
|
|
public static void e(String message, Throwable throwable) {
|
|
Log.e(TAG, message, throwable);
|
|
}
|
|
|
|
public static void wtf(String message) {
|
|
Log.wtf(TAG, message);
|
|
}
|
|
|
|
public static void wtf(String message, Throwable throwable) {
|
|
Log.wtf(TAG, message, throwable);
|
|
}
|
|
|
|
public static void test(String message) {
|
|
if (ChanApplication.DEVELOPER_MODE) {
|
|
Log.i(TAG_TEST, message);
|
|
}
|
|
}
|
|
|
|
public static void test(String message, Throwable throwable) {
|
|
if (ChanApplication.DEVELOPER_MODE) {
|
|
Log.i(TAG_TEST, message, throwable);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|