|
static void | setLogLevel (int logLevel) |
|
static void | println (@NonNull int level, @NonNull String tag, @NonNull String message) |
|
static void | v (@NonNull String tag, @NonNull String message) |
|
static void | v (@NonNull String tag, @NonNull String message, @NonNull Throwable tr) |
|
static void | i (@NonNull String tag, @NonNull String message) |
|
static void | i (@NonNull String tag, @NonNull String message, @NonNull Throwable tr) |
|
static void | d (@NonNull String tag, @NonNull String message) |
|
static void | d (@NonNull String tag, @NonNull String message, @NonNull Throwable tr) |
|
static void | w (@NonNull String tag, @NonNull String message) |
|
static void | w (@NonNull String tag, @NonNull String message, @NonNull Throwable tr) |
|
static void | e (@NonNull String tag, @NonNull String message) |
|
static void | e (@NonNull String tag, @NonNull String message, @NonNull Throwable tr) |
|
static void | wtf (@NonNull String tag, @NonNull String message) |
|
static void | wtf (@NonNull String tag, @NonNull String message, @NonNull Throwable tr) |
|
static String | getStackTraceString (@Nullable Throwable tr) |
|
|
static int | ASSERT = android.util.Log.ASSERT |
|
static int | DEBUG = android.util.Log.DEBUG |
|
static int | ERROR = android.util.Log.ERROR |
|
static int | INFO = android.util.Log.INFO |
|
static int | VERBOSE = android.util.Log.VERBOSE |
|
static int | WARN = android.util.Log.WARN |
|
Port of android.util.Log
that only logs in {@value io.flutter.BuildConfig::DEBUG} mode and internally filters logs based on a logLevel
.
Definition at line 14 of file Log.java.
◆ d() [1/2]
static void io.flutter.Log.d |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message |
|
) |
| |
|
inlinestatic |
Definition at line 64 of file Log.java.
64 {
65 if (BuildConfig.DEBUG && logLevel <=
android.util.Log.DEBUG) {
67 }
68 }
◆ d() [2/2]
static void io.flutter.Log.d |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message, |
|
|
@NonNull Throwable |
tr |
|
) |
| |
|
inlinestatic |
Definition at line 70 of file Log.java.
70 {
71 if (BuildConfig.DEBUG && logLevel <=
android.util.Log.DEBUG) {
73 }
74 }
◆ e() [1/2]
static void io.flutter.Log.e |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message |
|
) |
| |
|
inlinestatic |
◆ e() [2/2]
static void io.flutter.Log.e |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message, |
|
|
@NonNull Throwable |
tr |
|
) |
| |
|
inlinestatic |
◆ getStackTraceString()
static String io.flutter.Log.getStackTraceString |
( |
@Nullable Throwable |
tr | ) |
|
|
inlinestatic |
Definition at line 101 of file Log.java.
101 {
102 return android.util.Log.getStackTraceString(tr);
103 }
◆ i() [1/2]
static void io.flutter.Log.i |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message |
|
) |
| |
|
inlinestatic |
Definition at line 52 of file Log.java.
52 {
53 if (BuildConfig.DEBUG && logLevel <=
android.util.Log.INFO) {
55 }
56 }
◆ i() [2/2]
static void io.flutter.Log.i |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message, |
|
|
@NonNull Throwable |
tr |
|
) |
| |
|
inlinestatic |
Definition at line 58 of file Log.java.
58 {
59 if (BuildConfig.DEBUG && logLevel <=
android.util.Log.INFO) {
61 }
62 }
◆ println()
static void io.flutter.Log.println |
( |
@NonNull int |
level, |
|
|
@NonNull String |
tag, |
|
|
@NonNull String |
message |
|
) |
| |
|
inlinestatic |
Definition at line 34 of file Log.java.
34 {
35 if (BuildConfig.DEBUG && logLevel <=
level) {
37 }
38 }
◆ setLogLevel()
static void io.flutter.Log.setLogLevel |
( |
int |
logLevel | ) |
|
|
inlinestatic |
Sets a log cutoff such that a log level of lower priority than logLevel
is filtered out.
See android.util.Log
for log level constants.
Definition at line 30 of file Log.java.
30 {
31 Log.logLevel = logLevel;
32 }
◆ v() [1/2]
static void io.flutter.Log.v |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message |
|
) |
| |
|
inlinestatic |
Definition at line 40 of file Log.java.
40 {
41 if (BuildConfig.DEBUG && logLevel <=
android.util.Log.VERBOSE) {
43 }
44 }
◆ v() [2/2]
static void io.flutter.Log.v |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message, |
|
|
@NonNull Throwable |
tr |
|
) |
| |
|
inlinestatic |
Definition at line 46 of file Log.java.
46 {
47 if (BuildConfig.DEBUG && logLevel <=
android.util.Log.VERBOSE) {
49 }
50 }
◆ w() [1/2]
static void io.flutter.Log.w |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message |
|
) |
| |
|
inlinestatic |
◆ w() [2/2]
static void io.flutter.Log.w |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message, |
|
|
@NonNull Throwable |
tr |
|
) |
| |
|
inlinestatic |
◆ wtf() [1/2]
static void io.flutter.Log.wtf |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message |
|
) |
| |
|
inlinestatic |
◆ wtf() [2/2]
static void io.flutter.Log.wtf |
( |
@NonNull String |
tag, |
|
|
@NonNull String |
message, |
|
|
@NonNull Throwable |
tr |
|
) |
| |
|
inlinestatic |
◆ ASSERT
int io.flutter.Log.ASSERT = android.util.Log.ASSERT |
|
static |
◆ DEBUG
int io.flutter.Log.DEBUG = android.util.Log.DEBUG |
|
static |
◆ ERROR
int io.flutter.Log.ERROR = android.util.Log.ERROR |
|
static |
◆ INFO
int io.flutter.Log.INFO = android.util.Log.INFO |
|
static |
◆ VERBOSE
int io.flutter.Log.VERBOSE = android.util.Log.VERBOSE |
|
static |
◆ WARN
int io.flutter.Log.WARN = android.util.Log.WARN |
|
static |
The documentation for this class was generated from the following file:
- shell/platform/android/io/flutter/Log.java