Log class
Minimal leveled logger that prints to stdout.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isDebugEnabled → bool
-
Whether d currently prints. Use it to avoid building expensive messages.
no setter
- level ↔ InternalLogLevel
-
Messages below this level are dropped. Quiet by default (warnings and
errors only), like the Java SDK;
FirebaseFirestore.setLoggingEnabled(true)turns debug output on.getter/setter pair
Static Methods
-
d(
String tag, dynamic message) → void -
Logs
messageat debug level. -
e(
String tag, dynamic message) → void -
Logs
messageat error level. -
i(
String tag, dynamic message) → void -
Logs
messageat the most detailed level (InternalLogLevel.i, below debug). -
truncate(
String message) → String -
Returns
messagecut to maxMessageLength characters, with a marker if something was removed. -
w(
String tag, dynamic message) → void -
Logs
messageat warning level.
Constants
- maxMessageLength → const int
- Longest message that is printed. Longer messages (for example the description of a huge document) are cut so that logging can't exhaust memory or flood the output.