223 lines
6.0 KiB
Smali
223 lines
6.0 KiB
Smali
|
|
.class public final Lcom/orhanobut/logger/Logger;
|
||
|
|
.super Ljava/lang/Object;
|
||
|
|
.source "Logger.java"
|
||
|
|
|
||
|
|
|
||
|
|
# static fields
|
||
|
|
.field public static final ASSERT:I = 0x7
|
||
|
|
|
||
|
|
.field public static final DEBUG:I = 0x3
|
||
|
|
|
||
|
|
.field public static final ERROR:I = 0x6
|
||
|
|
|
||
|
|
.field public static final INFO:I = 0x4
|
||
|
|
|
||
|
|
.field public static final VERBOSE:I = 0x2
|
||
|
|
|
||
|
|
.field public static final WARN:I = 0x5
|
||
|
|
|
||
|
|
.field private static printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
|
||
|
|
# direct methods
|
||
|
|
.method static constructor <clinit>()V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 76
|
||
|
|
new-instance v0, Lcom/orhanobut/logger/LoggerPrinter;
|
||
|
|
|
||
|
|
invoke-direct {v0}, Lcom/orhanobut/logger/LoggerPrinter;-><init>()V
|
||
|
|
|
||
|
|
sput-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method private constructor <init>()V
|
||
|
|
.locals 0
|
||
|
|
|
||
|
|
.line 78
|
||
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static addLogAdapter(Lcom/orhanobut/logger/LogAdapter;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 87
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-static {p0}, Lcom/orhanobut/logger/Utils;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
|
||
|
|
move-result-object p0
|
||
|
|
|
||
|
|
check-cast p0, Lcom/orhanobut/logger/LogAdapter;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0}, Lcom/orhanobut/logger/Printer;->addAdapter(Lcom/orhanobut/logger/LogAdapter;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static clearLogAdapters()V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 91
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0}, Lcom/orhanobut/logger/Printer;->clearLogAdapters()V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static d(Ljava/lang/Object;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 115
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0}, Lcom/orhanobut/logger/Printer;->d(Ljava/lang/Object;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static varargs d(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 111
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0, p1}, Lcom/orhanobut/logger/Printer;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static varargs e(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
.locals 2
|
||
|
|
|
||
|
|
.line 119
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
const/4 v1, 0x0
|
||
|
|
|
||
|
|
invoke-interface {v0, v1, p0, p1}, Lcom/orhanobut/logger/Printer;->e(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static varargs e(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 123
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0, p1, p2}, Lcom/orhanobut/logger/Printer;->e(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static varargs i(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 127
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0, p1}, Lcom/orhanobut/logger/Printer;->i(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static json(Ljava/lang/String;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 150
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0}, Lcom/orhanobut/logger/Printer;->json(Ljava/lang/String;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static log(ILjava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 107
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0, p1, p2, p3}, Lcom/orhanobut/logger/Printer;->log(ILjava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static printer(Lcom/orhanobut/logger/Printer;)V
|
||
|
|
.locals 0
|
||
|
|
|
||
|
|
.line 83
|
||
|
|
invoke-static {p0}, Lcom/orhanobut/logger/Utils;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
|
||
|
|
move-result-object p0
|
||
|
|
|
||
|
|
check-cast p0, Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
sput-object p0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static t(Ljava/lang/String;)Lcom/orhanobut/logger/Printer;
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 100
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0}, Lcom/orhanobut/logger/Printer;->t(Ljava/lang/String;)Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
move-result-object p0
|
||
|
|
|
||
|
|
return-object p0
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static varargs v(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 131
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0, p1}, Lcom/orhanobut/logger/Printer;->v(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static varargs w(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 135
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0, p1}, Lcom/orhanobut/logger/Printer;->w(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static varargs wtf(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 143
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0, p1}, Lcom/orhanobut/logger/Printer;->wtf(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|
||
|
|
|
||
|
|
.method public static xml(Ljava/lang/String;)V
|
||
|
|
.locals 1
|
||
|
|
|
||
|
|
.line 157
|
||
|
|
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
|
||
|
|
|
||
|
|
invoke-interface {v0, p0}, Lcom/orhanobut/logger/Printer;->xml(Ljava/lang/String;)V
|
||
|
|
|
||
|
|
return-void
|
||
|
|
.end method
|