Logger.smali
5.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
.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 15
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 17
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static addLogAdapter(Lcom/orhanobut/logger/LogAdapter;)V
.locals 1
.line 26
sget-object v0, Lcom/orhanobut/logger/Logger;->printer:Lcom/orhanobut/logger/Printer;
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 30
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 54
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 50
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 58
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 62
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 66
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 89
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 46
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 22
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 39
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 70
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 74
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 82
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 96
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