Logging class

Configuration for printing to the console.

Available extensions

Constructors

Logging()

Properties

hashCode int
The hash code for this object.
no setterinherited
level LogLevel
Defines the minimum log level to print to the console. Defaults to info.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes Set<LogScope>
Defines the scope of logs to print to the console. Defaults to .all.
getter/setter pair

Methods

debug(String message, [Object? error, StackTrace? trace]) → void
error(String message, [Object? error, StackTrace? trace]) → void
handleLogRecord(LogLevel level, String message, [Object? error, StackTrace? trace]) → void
info(String message, [Object? error, StackTrace? trace]) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map

Available on Logging, provided by the LoggingJson extension

toString() String
A string representation of this object.
inherited
warn(String message, [Object? error, StackTrace? trace]) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited