mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Added log filtering
This commit is contained in:
@@ -55,25 +55,20 @@ public class EntityLog {
|
||||
@NonNull
|
||||
public Long time;
|
||||
@NonNull
|
||||
public Integer type = LOG_GENERAL;
|
||||
public Type type = Type.General;
|
||||
@NonNull
|
||||
public String data;
|
||||
|
||||
static final int LOG_GENERAL = 0;
|
||||
static final int LOG_STATS = 1;
|
||||
static final int LOG_SCHEDULE = 2;
|
||||
static final int LOG_NETWORK = 3;
|
||||
static final int LOG_ACCOUNT = 4;
|
||||
static final int LOG_PROTOCOL = 5;
|
||||
enum Type {General, Statistics, Scheduling, Network, Account, Protocol}
|
||||
|
||||
private static final ExecutorService executor =
|
||||
Helper.getBackgroundExecutor(1, "log");
|
||||
|
||||
static void log(final Context context, String data) {
|
||||
log(context, LOG_GENERAL, data);
|
||||
log(context, Type.General, data);
|
||||
}
|
||||
|
||||
static void log(final Context context, int type, String data) {
|
||||
static void log(final Context context, Type type, String data) {
|
||||
Log.i(data);
|
||||
|
||||
if (context == null)
|
||||
|
||||
Reference in New Issue
Block a user