Fimber class

Main static Fimber logging.

Constructors

Fimber()

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 Methods

block(RunWithLog block) → dynamic
Creates auto tag and logger, then executes the code block with a logger to use. Limiting number of 'stacktrace' based tag generation inside the block.
clearAll() → void
Clear all trees from Fimber.
d(String message, {dynamic ex, StackTrace? stacktrace, Map<String, String?>? attributes}) → void
Logs DEBUG level message with optional exception and stacktrace
e(String message, {dynamic ex, StackTrace? stacktrace, Map<String, String?>? attributes}) → void
Logs ERROR level message with optional exception and stacktrace
i(String message, {dynamic ex, StackTrace? stacktrace, Map<String, String?>? attributes}) → void
Logs INFO level message with optional exception and stacktrace
log(String level, String message, {String? tag, dynamic ex, StackTrace? stacktrace, Map<String, String?>? attributes}) → void
Logs a message with provided level and optional tag, ex and stacktrace
mute(String level) → void
Mute a log level for logging. Any log entries with the muted log level will be not printed.
plantTree(LogTree tree) → void
Plant a tree - the source that will receive log messages.
unmute(String level) → void
UnMutes a log level for logging. Any log entries with the muted log level will be not printed.
unplantTree(LogTree tree) → void
Un-plants a tree from
v(String message, {dynamic ex, StackTrace? stacktrace, Map<String, String?>? attributes}) → void
Logs VERBOSE level message with optional exception and stacktrace
w(String message, {dynamic ex, StackTrace? stacktrace, Map<String, String?>? attributes}) → void
Logs WARNING level message with optional exception and stacktrace
withTag(String tag, RunWithLog block) → dynamic
Creates logger with tag, then executes the code block with a logger to use. Removing need of tag generation.