48 lines
1.4 KiB
Java
48 lines
1.4 KiB
Java
package c.e.a;
|
|
|
|
import java.util.Date;
|
|
/* compiled from: Log */
|
|
public class a {
|
|
public static C0052a a = new C0052a();
|
|
|
|
/* compiled from: Log */
|
|
/* renamed from: c.e.a.a$a reason: collision with other inner class name */
|
|
public static class C0052a {
|
|
public long a = new Date().getTime();
|
|
|
|
public void a(int i, String str, String str2, Throwable th) {
|
|
StringBuilder sb = new StringBuilder(256);
|
|
long time = new Date().getTime() - this.a;
|
|
long j = time / 60000;
|
|
long j2 = (time / 1000) % 60;
|
|
if (j <= 9) {
|
|
sb.append('0');
|
|
}
|
|
sb.append(j);
|
|
sb.append(':');
|
|
if (j2 <= 9) {
|
|
sb.append('0');
|
|
}
|
|
sb.append(j2);
|
|
if (i == 1) {
|
|
sb.append(" TRACE: ");
|
|
} else if (i == 2) {
|
|
sb.append(" DEBUG: ");
|
|
} else if (i == 3) {
|
|
sb.append(" INFO: ");
|
|
} else if (i == 4) {
|
|
sb.append(" WARN: ");
|
|
} else if (i == 5) {
|
|
sb.append(" ERROR: ");
|
|
}
|
|
if (str != null) {
|
|
sb.append('[');
|
|
sb.append(str);
|
|
sb.append("] ");
|
|
}
|
|
sb.append(str2);
|
|
System.out.println(sb.toString());
|
|
}
|
|
}
|
|
}
|