Log class

Minimal leveled logger that prints to stdout.

Constructors

Log()
Not needed: every member of Log is static.

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 message at debug level.
e(String tag, dynamic message) → void
Logs message at error level.
i(String tag, dynamic message) → void
Logs message at the most detailed level (InternalLogLevel.i, below debug).
truncate(String message) → String
Returns message cut to maxMessageLength characters, with a marker if something was removed.
w(String tag, dynamic message) → void
Logs message at 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.