Logger class
A singleton implementation of LogAdapter using the logging package.
This logger forwards messages to the root logger and listens to log records. It supports multiple log levels and optional tagging and location tracking.
Use Logger() to access the shared instance.
- Implemented types
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
-
debug(
String message, {String tag = defaultTag, bool loc = false}) → void -
Log a message at the debug level.
Internally mapped to
Level.FINEin theloggingpackage.override -
error(
String message, {String tag = defaultTag, bool loc = false}) → void -
Log a message at the error level.
Internally mapped to
Level.SEVEREin theloggingpackage.override -
info(
String message, {String tag = defaultTag, bool loc = false}) → void -
Log a message at the info level.
Internally mapped to
Level.INFOin theloggingpackage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
warn(
String message, {String tag = defaultTag, bool loc = false}) → void -
Log a message at the warn level.
Internally mapped to
Level.WARNINGin theloggingpackage.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited