Flogger class abstract
Convenience singleton with static methods to
interact with Logger
Logs can be configured with FloggerConfig
Logs can be listened to with FloggerListener
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
-
clearListeners(
) → dynamic - Clear all log listeners
-
d(
String message, {String? loggerName}) → dynamic - Log a DEBUG message with CONFIG Level
-
e(
String message, {StackTrace? stackTrace, String? loggerName}) → dynamic - Log an ERROR message with SEVERE Level
-
i(
String message, {String? loggerName}) → dynamic - Log an INFO message with INFO Level
-
init(
{FloggerConfig config = const FloggerConfig()}) → void -
Initialize the default
Logger
and set the FloggerConfig -
registerListener(
FloggerListener onRecord) → dynamic - Register a listener to listen to all logs Logs are emitted as FloggerRecord
-
w(
String message, {String? loggerName}) → dynamic - Log a WARNING message with WARNING Level