discord-jadx/app/src/main/java/com/discord/utilities/logging/Logger.java

223 lines
7.3 KiB
Java

package com.discord.utilities.logging;
import android.util.Log;
import d0.z.d.m;
import java.util.Map;
/* compiled from: Logger.kt */
public class Logger {
private final String defaultTag;
public Logger(String str) {
m.checkNotNullParameter(str, "defaultTag");
this.defaultTag = str;
}
public static /* synthetic */ void d$default(Logger logger, String str, String str2, Throwable th, int i, Object obj) {
if (obj == null) {
if ((i & 4) != 0) {
th = null;
}
logger.d(str, str2, th);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: d");
}
public static /* synthetic */ void d$default(Logger logger, String str, Throwable th, int i, Object obj) {
if (obj == null) {
if ((i & 2) != 0) {
th = null;
}
logger.d(str, th);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: d");
}
/* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: com.discord.utilities.logging.Logger */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ void e$default(Logger logger, String str, String str2, Throwable th, Map map, int i, Object obj) {
if (obj == null) {
if ((i & 4) != 0) {
th = null;
}
if ((i & 8) != 0) {
map = null;
}
logger.e(str, str2, th, map);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: e");
}
/* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: com.discord.utilities.logging.Logger */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ void e$default(Logger logger, String str, Throwable th, Map map, int i, Object obj) {
if (obj == null) {
if ((i & 2) != 0) {
th = null;
}
if ((i & 4) != 0) {
map = null;
}
logger.e(str, th, map);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: e");
}
public static /* synthetic */ void i$default(Logger logger, String str, String str2, Throwable th, int i, Object obj) {
if (obj == null) {
if ((i & 4) != 0) {
th = null;
}
logger.i(str, str2, th);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: i");
}
public static /* synthetic */ void i$default(Logger logger, String str, Throwable th, int i, Object obj) {
if (obj == null) {
if ((i & 2) != 0) {
th = null;
}
logger.i(str, th);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: i");
}
public static /* synthetic */ void v$default(Logger logger, String str, String str2, Throwable th, int i, Object obj) {
if (obj == null) {
if ((i & 4) != 0) {
th = null;
}
logger.v(str, str2, th);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: v");
}
public static /* synthetic */ void v$default(Logger logger, String str, Throwable th, int i, Object obj) {
if (obj == null) {
if ((i & 2) != 0) {
th = null;
}
logger.v(str, th);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: v");
}
public static /* synthetic */ void w$default(Logger logger, String str, String str2, Throwable th, int i, Object obj) {
if (obj == null) {
if ((i & 4) != 0) {
th = null;
}
logger.w(str, str2, th);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: w");
}
public static /* synthetic */ void w$default(Logger logger, String str, Throwable th, int i, Object obj) {
if (obj == null) {
if ((i & 2) != 0) {
th = null;
}
logger.w(str, th);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: w");
}
public void d(String str, String str2, Throwable th) {
m.checkNotNullParameter(str, "tag");
m.checkNotNullParameter(str2, "message");
if (th != null) {
Log.d(str, str2, th);
} else {
Log.d(str, str2);
}
}
public void d(String str, Throwable th) {
m.checkNotNullParameter(str, "message");
d(this.defaultTag, str, th);
}
public void e(String str, String str2, Throwable th, Map<String, String> map) {
m.checkNotNullParameter(str, "tag");
m.checkNotNullParameter(str2, "message");
if (th != null) {
Log.e(str, str2, th);
} else {
Log.e(str, str2);
}
}
public void e(String str, Throwable th, Map<String, String> map) {
m.checkNotNullParameter(str, "message");
e(this.defaultTag, str, th, map);
}
public final String getDefaultTag() {
return this.defaultTag;
}
public final void i(String str) {
i$default(this, str, null, 2, null);
}
public void i(String str, String str2, Throwable th) {
m.checkNotNullParameter(str, "tag");
m.checkNotNullParameter(str2, "message");
if (th != null) {
Log.i(str, str2, th);
} else {
Log.i(str, str2);
}
}
public void i(String str, Throwable th) {
m.checkNotNullParameter(str, "message");
i(this.defaultTag, str, th);
}
public void recordBreadcrumb(String str, String str2) {
m.checkNotNullParameter(str, "message");
m.checkNotNullParameter(str2, "category");
}
public void v(String str, String str2, Throwable th) {
m.checkNotNullParameter(str, "tag");
m.checkNotNullParameter(str2, "message");
if (th != null) {
Log.v(str, str2, th);
} else {
Log.v(str, str2);
}
}
public void v(String str, Throwable th) {
m.checkNotNullParameter(str, "message");
v(this.defaultTag, str, th);
}
public void w(String str, String str2, Throwable th) {
m.checkNotNullParameter(str, "tag");
m.checkNotNullParameter(str2, "message");
if (th != null) {
Log.w(str, str2, th);
} else {
Log.w(str, str2);
}
}
public void w(String str, Throwable th) {
m.checkNotNullParameter(str, "message");
w(this.defaultTag, str, th);
}
}