jimu-decompiled/sources/com/tencent/open/a/h.java
2025-05-13 19:24:51 +02:00

52 lines
1.4 KiB
Java

package com.tencent.open.a;
import android.text.format.Time;
import android.util.Log;
/* compiled from: ProGuard */
/* loaded from: classes.dex */
public final class h {
public static final h a = new h();
public final String a(int i) {
return i != 1 ? i != 2 ? i != 4 ? i != 8 ? i != 16 ? i != 32 ? "-" : "A" : "E" : "W" : "I" : "D" : "V";
}
public String a(int i, Thread thread, long j, String str, String str2, Throwable th) {
long j2 = j % 1000;
Time time = new Time();
time.set(j);
StringBuilder sb = new StringBuilder();
sb.append(a(i));
sb.append('/');
sb.append(time.format("%Y-%m-%d %H:%M:%S"));
sb.append('.');
if (j2 < 10) {
sb.append("00");
} else if (j2 < 100) {
sb.append('0');
}
sb.append(j2);
sb.append(' ');
sb.append('[');
if (thread == null) {
sb.append("N/A");
} else {
sb.append(thread.getName());
}
sb.append(']');
sb.append('[');
sb.append(str);
sb.append(']');
sb.append(' ');
sb.append(str2);
sb.append('\n');
if (th != null) {
sb.append("* Exception : \n");
sb.append(Log.getStackTraceString(th));
sb.append('\n');
}
return sb.toString();
}
}