35 lines
1.1 KiB
Java
35 lines
1.1 KiB
Java
|
package okhttp3.internal.platform.android;
|
||
|
|
||
|
import java.util.logging.Handler;
|
||
|
import java.util.logging.LogRecord;
|
||
|
import o.C14957gcv;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class AndroidLogHandler extends Handler {
|
||
|
public static final AndroidLogHandler INSTANCE = new AndroidLogHandler();
|
||
|
|
||
|
@Override // java.util.logging.Handler
|
||
|
public final void close() {
|
||
|
}
|
||
|
|
||
|
@Override // java.util.logging.Handler
|
||
|
public final void flush() {
|
||
|
}
|
||
|
|
||
|
private AndroidLogHandler() {
|
||
|
}
|
||
|
|
||
|
@Override // java.util.logging.Handler
|
||
|
public final void publish(LogRecord logRecord) {
|
||
|
int androidLevel;
|
||
|
C14957gcv.e(logRecord, "");
|
||
|
AndroidLog androidLog = AndroidLog.INSTANCE;
|
||
|
String loggerName = logRecord.getLoggerName();
|
||
|
C14957gcv.c((Object) loggerName, "");
|
||
|
androidLevel = AndroidLogKt.getAndroidLevel(logRecord);
|
||
|
String message = logRecord.getMessage();
|
||
|
C14957gcv.c((Object) message, "");
|
||
|
androidLog.androidLog$okhttp(loggerName, androidLevel, message, logRecord.getThrown());
|
||
|
}
|
||
|
}
|