mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Refactoring
This commit is contained in:
33
app/src/main/java/eu/faircode/email/Log.java
Normal file
33
app/src/main/java/eu/faircode/email/Log.java
Normal file
@@ -0,0 +1,33 @@
|
||||
package eu.faircode.email;
|
||||
|
||||
public class Log {
|
||||
static final String TAG = "fairemail";
|
||||
|
||||
public static int i(String msg) {
|
||||
return android.util.Log.i(TAG, msg);
|
||||
}
|
||||
|
||||
public static int w(String msg) {
|
||||
return android.util.Log.w(TAG, msg);
|
||||
}
|
||||
|
||||
public static int e(String msg) {
|
||||
return android.util.Log.e(TAG, msg);
|
||||
}
|
||||
|
||||
public static int w(Throwable ex) {
|
||||
return android.util.Log.w(TAG, ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
}
|
||||
|
||||
public static int e(Throwable ex) {
|
||||
return android.util.Log.e(TAG, ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
}
|
||||
|
||||
public static int w(String prefix, Throwable ex) {
|
||||
return android.util.Log.w(TAG, prefix + " " + ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
}
|
||||
|
||||
public static int e(String prefix, Throwable ex) {
|
||||
return android.util.Log.e(TAG, prefix + " " + ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user