-
Notifications
You must be signed in to change notification settings - Fork 831
/
Copy pathLog.java
executable file
·59 lines (47 loc) · 1.35 KB
/
Log.java
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
package com.github.hiteshsondhi88.libffmpeg;
@SuppressWarnings("unused")
class Log {
private static String TAG = FFmpeg.class.getSimpleName();
private static boolean DEBUG = false;
static void setDEBUG(boolean DEBUG) {
Log.DEBUG = DEBUG;
}
static void setTAG(String tag) {
Log.TAG = tag;
}
static void d(Object obj) {
if (DEBUG) {
android.util.Log.d(TAG, obj != null ? obj.toString() : null+"");
}
}
static void e(Object obj) {
if (DEBUG) {
android.util.Log.e(TAG, obj != null ? obj.toString() : null+"");
}
}
static void w(Object obj) {
if (DEBUG) {
android.util.Log.w(TAG, obj != null ? obj.toString() : null+"");
}
}
static void i(Object obj) {
if (DEBUG) {
android.util.Log.i(TAG, obj != null ? obj.toString() : null+"");
}
}
static void v(Object obj) {
if (DEBUG) {
android.util.Log.v(TAG, obj != null ? obj.toString() : null+"");
}
}
static void e(Object obj, Throwable throwable) {
if (DEBUG) {
android.util.Log.e(TAG, obj != null ? obj.toString() : null+"", throwable);
}
}
static void e(Throwable throwable) {
if (DEBUG) {
android.util.Log.e(TAG, "", throwable);
}
}
}