ExtendedLogger class

This Logger is extended from https://github.com/leisim/logger, which contains some new instance method, such as changePrinter and addOutputListener.

Constructors

ExtendedLogger({LogFilter? filter, LogPrinter? printer, LogOutput? output, Level level = Level.verbose})
Creates a new instance of ExtendedLogger. Here filter, printer and output default to DevelopmentFilter, PrettyPrinter and ConsoleOutput.

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

addLogListener(LogEventCallback listener) → void
Adds a log event listener.
addOutputListener(OutputEventCallback listener) → void
Adds a output event listener.
changeOutput(LogOutput output) → void
Changes current LogOutput to given output.
changePrinter(LogPrinter printer) → void
Changes current LogPrinter to given printer.
clearLogListeners() → void
Removes all log event listeners.
clearOutputListeners() → void
Removes all output event listeners.
close() → void
Closes the logger and releases all resources.
d(dynamic message, [dynamic error, StackTrace? stackTrace, bool? ignoreOutput]) → void
Logs a message at Level.debug level.
e(dynamic message, [dynamic error, StackTrace? stackTrace, bool? ignoreOutput]) → void
Logs a message at Level.error level.
i(dynamic message, [dynamic error, StackTrace? stackTrace, bool? ignoreOutput]) → void
Logs a message at Level.info level.
isClosed() bool
log(Level level, dynamic message, [dynamic error, StackTrace? stackTrace, bool? ignoreOutput]) → void
Logs a message at given level.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeLogListener(LogEventCallback listener) → void
Removes a log event listener.
removeOutputListener(OutputEventCallback listener) → void
Removes a output event listener.
toString() String
A string representation of this object.
inherited
v(dynamic message, [dynamic error, StackTrace? stackTrace, bool? ignoreOutput]) → void
Logs a message at Level.verbose level.
w(dynamic message, [dynamic error, StackTrace? stackTrace, bool? ignoreOutput]) → void
Logs a message at Level.warning level.
wtf(dynamic message, [dynamic error, StackTrace? stackTrace, bool? ignoreOutput]) → void
Logs a message at Level.wtf level.

Operators

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