Flutter Engine
The Flutter Engine
Static Public Member Functions | Static Public Attributes | List of all members
io.flutter.Log Class Reference

Static Public Member Functions

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 Public Attributes

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
 

Detailed Description

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.

Member Function Documentation

◆ 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) {
66 android.util.Log.d(tag, message);
67 }
68 }
Win32Message message

◆ 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) {
72 android.util.Log.d(tag, message, tr);
73 }
74 }

◆ e() [1/2]

static void io.flutter.Log.e ( @NonNull String  tag,
@NonNull String  message 
)
inlinestatic

Definition at line 84 of file Log.java.

84 {
85 android.util.Log.e(tag, message);
86 }

◆ e() [2/2]

static void io.flutter.Log.e ( @NonNull String  tag,
@NonNull String  message,
@NonNull Throwable  tr 
)
inlinestatic

Definition at line 88 of file Log.java.

88 {
89 android.util.Log.e(tag, message, tr);
90 }

◆ 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) {
54 android.util.Log.i(tag, message);
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) {
60 android.util.Log.i(tag, message, tr);
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) {
36 android.util.Log.println(level, tag, message);
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) {
42 android.util.Log.v(tag, message);
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) {
48 android.util.Log.v(tag, message, tr);
49 }
50 }

◆ w() [1/2]

static void io.flutter.Log.w ( @NonNull String  tag,
@NonNull String  message 
)
inlinestatic

Definition at line 76 of file Log.java.

76 {
77 android.util.Log.w(tag, message);
78 }

◆ w() [2/2]

static void io.flutter.Log.w ( @NonNull String  tag,
@NonNull String  message,
@NonNull Throwable  tr 
)
inlinestatic

Definition at line 80 of file Log.java.

80 {
81 android.util.Log.w(tag, message, tr);
82 }

◆ wtf() [1/2]

static void io.flutter.Log.wtf ( @NonNull String  tag,
@NonNull String  message 
)
inlinestatic

Definition at line 92 of file Log.java.

92 {
93 android.util.Log.wtf(tag, message);
94 }

◆ wtf() [2/2]

static void io.flutter.Log.wtf ( @NonNull String  tag,
@NonNull String  message,
@NonNull Throwable  tr 
)
inlinestatic

Definition at line 96 of file Log.java.

96 {
97 android.util.Log.wtf(tag, message, tr);
98 }

Member Data Documentation

◆ ASSERT

int io.flutter.Log.ASSERT = android.util.Log.ASSERT
static

Definition at line 17 of file Log.java.

◆ DEBUG

int io.flutter.Log.DEBUG = android.util.Log.DEBUG
static

Definition at line 18 of file Log.java.

◆ ERROR

int io.flutter.Log.ERROR = android.util.Log.ERROR
static

Definition at line 19 of file Log.java.

◆ INFO

int io.flutter.Log.INFO = android.util.Log.INFO
static

Definition at line 20 of file Log.java.

◆ VERBOSE

int io.flutter.Log.VERBOSE = android.util.Log.VERBOSE
static

Definition at line 21 of file Log.java.

◆ WARN

int io.flutter.Log.WARN = android.util.Log.WARN
static

Definition at line 22 of file Log.java.


The documentation for this class was generated from the following file: