2021-08-09 22:50:52 +00:00
|
|
|
package c.e.a;
|
|
|
|
|
|
|
|
import com.discord.widgets.chat.input.MentionUtilsKt;
|
|
|
|
import java.util.Date;
|
|
|
|
/* compiled from: Log */
|
|
|
|
public class a {
|
2021-08-18 07:29:27 +00:00
|
|
|
public static C0056a a = new C0056a();
|
2021-08-09 22:50:52 +00:00
|
|
|
|
|
|
|
/* compiled from: Log */
|
|
|
|
/* renamed from: c.e.a.a$a reason: collision with other inner class name */
|
2021-08-18 07:29:27 +00:00
|
|
|
public static class C0056a {
|
2021-08-09 22:50:52 +00:00
|
|
|
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(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR);
|
|
|
|
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());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|