Logger class Null safety

Use instances of logger to send log messages to the LogPrinter.

Constructors

Logger({LogFilter? filter, LogPrinter? printer, LogOutput? output, Level? level})
Create a new instance of Logger.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

close() → void
Closes the logger and releases all resources.
d(dynamic message, [dynamic error, StackTrace? stackTrace]) → void
Log a message at level Level.debug.
e(dynamic message, [dynamic error, StackTrace? stackTrace]) → void
Log a message at level Level.error.
i(dynamic message, [dynamic error, StackTrace? stackTrace]) → void
Log a message at level Level.info.
log(Level level, dynamic message, [dynamic error, StackTrace? stackTrace]) → void
Log a message with level.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
v(dynamic message, [dynamic error, StackTrace? stackTrace]) → void
Log a message at level Level.verbose.
w(dynamic message, [dynamic error, StackTrace? stackTrace]) → void
Log a message at level Level.warning.
wtf(dynamic message, [dynamic error, StackTrace? stackTrace]) → void
Log a message at level Level.wtf.

Operators

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

Static Properties

level Level
The current logging level of the app.
read / write