80 lines
2.1 KiB
Java
80 lines
2.1 KiB
Java
package o;
|
|
|
|
import java.io.Serializable;
|
|
import org.apache.log4j.Level;
|
|
import org.apache.log4j.Logger;
|
|
|
|
/* renamed from: o.gkq, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public class C15230gkq implements InterfaceC15219gkf, Serializable {
|
|
private static Class a;
|
|
private static Class b;
|
|
private static Class c;
|
|
private static final String d;
|
|
private volatile transient Logger e = null;
|
|
private final String g = null;
|
|
|
|
static {
|
|
Class cls = c;
|
|
if (cls == null) {
|
|
cls = a("o.gkq");
|
|
c = cls;
|
|
}
|
|
d = cls.getName();
|
|
Class cls2 = b;
|
|
if (cls2 == null) {
|
|
cls2 = a("org.apache.log4j.Priority");
|
|
b = cls2;
|
|
}
|
|
Class<?> cls3 = a;
|
|
if (cls3 == null) {
|
|
cls3 = a("org.apache.log4j.Level");
|
|
a = cls3;
|
|
}
|
|
if (!cls2.isAssignableFrom(cls3)) {
|
|
throw new InstantiationError("Log4J 1.2 not available");
|
|
}
|
|
try {
|
|
Class cls4 = a;
|
|
if (cls4 == null) {
|
|
cls4 = a("org.apache.log4j.Level");
|
|
a = cls4;
|
|
}
|
|
} catch (Exception unused) {
|
|
Level level = Level.DEBUG;
|
|
}
|
|
}
|
|
|
|
private static /* synthetic */ Class a(String str) {
|
|
try {
|
|
return Class.forName(str);
|
|
} catch (ClassNotFoundException e) {
|
|
throw new NoClassDefFoundError(e.getMessage());
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC15219gkf
|
|
public final void d(Object obj, Throwable th) {
|
|
d().log(d, Level.DEBUG, obj, th);
|
|
}
|
|
|
|
private Logger d() {
|
|
Logger logger = this.e;
|
|
if (logger == null) {
|
|
synchronized (this) {
|
|
logger = this.e;
|
|
if (logger == null) {
|
|
logger = Logger.getLogger((String) null);
|
|
this.e = logger;
|
|
}
|
|
}
|
|
}
|
|
return logger;
|
|
}
|
|
|
|
@Override // o.InterfaceC15219gkf
|
|
public final boolean e() {
|
|
return d().isDebugEnabled();
|
|
}
|
|
}
|