Logger class
Log Controller.
See also: Encoder encodes Message log object, usually a String. Writer writes log object to filesystem or others.
Constructors
-
Logger.build({required Encoder<
Message> encoder, required Writer writer}) -
Build a custom logger.
const
- Logger.console()
-
Preset.
const
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(
Object? text, [StackTrace? stackTrace]) → void - Log with level Level.debug.
-
error(
Object? text, [StackTrace? stackTrace]) → void - Log with level Level.error.
-
info(
Object? text, [StackTrace? stackTrace]) → void - Log with level Level.info.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
panic(
Object? text, [StackTrace? stackTrace]) → void - Log with level Level.panic.
-
toString(
) → String -
A string representation of this object.
inherited
-
verbose(
Object? text, [StackTrace? stackTrace]) → void - Log with level Level.verbose.
-
write(
Message message) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited