84 lines
1.7 KiB
Java
84 lines
1.7 KiB
Java
package com.google.firebase.crashlytics.internal;
|
|
|
|
import android.util.Log;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class Logger {
|
|
private int logLevel = 4;
|
|
private final String tag;
|
|
public static final String TAG = "FirebaseCrashlytics";
|
|
static final Logger DEFAULT_LOGGER = new Logger(TAG);
|
|
|
|
public Logger(String str) {
|
|
this.tag = str;
|
|
}
|
|
|
|
private boolean canLog(int i) {
|
|
return this.logLevel <= i || Log.isLoggable(this.tag, i);
|
|
}
|
|
|
|
public static Logger getLogger() {
|
|
return DEFAULT_LOGGER;
|
|
}
|
|
|
|
public void d(String str, Throwable th) {
|
|
if (canLog(3)) {
|
|
Log.d(this.tag, str, th);
|
|
}
|
|
}
|
|
|
|
public void e(String str, Throwable th) {
|
|
if (canLog(6)) {
|
|
Log.e(this.tag, str, th);
|
|
}
|
|
}
|
|
|
|
public void i(String str, Throwable th) {
|
|
if (canLog(4)) {
|
|
Log.i(this.tag, str, th);
|
|
}
|
|
}
|
|
|
|
public void log(int i, String str) {
|
|
log(i, str, false);
|
|
}
|
|
|
|
public void v(String str, Throwable th) {
|
|
if (canLog(2)) {
|
|
Log.v(this.tag, str, th);
|
|
}
|
|
}
|
|
|
|
public void w(String str, Throwable th) {
|
|
if (canLog(5)) {
|
|
Log.w(this.tag, str, th);
|
|
}
|
|
}
|
|
|
|
public void log(int i, String str, boolean z3) {
|
|
if (z3 || canLog(i)) {
|
|
Log.println(i, this.tag, str);
|
|
}
|
|
}
|
|
|
|
public void d(String str) {
|
|
d(str, null);
|
|
}
|
|
|
|
public void e(String str) {
|
|
e(str, null);
|
|
}
|
|
|
|
public void i(String str) {
|
|
i(str, null);
|
|
}
|
|
|
|
public void v(String str) {
|
|
v(str, null);
|
|
}
|
|
|
|
public void w(String str) {
|
|
w(str, null);
|
|
}
|
|
}
|