Logger class

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

Constructors

Logger({LogFilter filter, LogPrinter printer, LogOutput output})
Create a new instance of Logger. [...]

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

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.
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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Properties

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

Static Methods

addLogListener(LogCallback callback) → void
Register a LogCallback which is called for each new LogEvent.
addOutputListener(OutputCallback callback) → void
Register an OutputCallback which is called for each new OutputEvent.
removeLogListener(LogCallback callback) → bool
Removes a LogCallback which was previously registered. [...]
removeOutputListener(OutputCallback callback) → void
Removes a OutputCallback which was previously registered. [...]