DefaultLogger.java
2.45 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
package io.fabric.sdk.android;
import android.util.Log;
public class DefaultLogger
implements Logger
{
private int a;
public DefaultLogger()
{
this.a = 4;
}
public DefaultLogger(int paramInt)
{
this.a = paramInt;
}
public void d(String paramString1, String paramString2)
{
d(paramString1, paramString2, null);
}
public void d(String paramString1, String paramString2, Throwable paramThrowable)
{
isLoggable(paramString1, 3);
}
public void e(String paramString1, String paramString2)
{
e(paramString1, paramString2, null);
}
public void e(String paramString1, String paramString2, Throwable paramThrowable)
{
if (isLoggable(paramString1, 6)) {
Log.e(paramString1, paramString2, paramThrowable);
}
}
public int getLogLevel()
{
return this.a;
}
public void i(String paramString1, String paramString2)
{
i(paramString1, paramString2, null);
}
public void i(String paramString1, String paramString2, Throwable paramThrowable)
{
if (isLoggable(paramString1, 4)) {
Log.i(paramString1, paramString2, paramThrowable);
}
}
public boolean isLoggable(String paramString, int paramInt)
{
return this.a <= paramInt;
}
public void log(int paramInt, String paramString1, String paramString2)
{
log(paramInt, paramString1, paramString2, false);
}
public void log(int paramInt, String paramString1, String paramString2, boolean paramBoolean)
{
if ((paramBoolean) || (isLoggable(paramString1, paramInt))) {
Log.println(paramInt, paramString1, paramString2);
}
}
public void setLogLevel(int paramInt)
{
this.a = paramInt;
}
public void v(String paramString1, String paramString2)
{
v(paramString1, paramString2, null);
}
public void v(String paramString1, String paramString2, Throwable paramThrowable)
{
if (isLoggable(paramString1, 2)) {
Log.v(paramString1, paramString2, paramThrowable);
}
}
public void w(String paramString1, String paramString2)
{
w(paramString1, paramString2, null);
}
public void w(String paramString1, String paramString2, Throwable paramThrowable)
{
if (isLoggable(paramString1, 5)) {
Log.w(paramString1, paramString2, paramThrowable);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/io/fabric/sdk/android/DefaultLogger.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/