IoLogSink class
A LogSinkMixin which uses stdout and stderr to write logs to.
formatter is used to format LogRecord before printing it.
When the level is higher than Level.Severe
stderr is used, otherwise
stdout.
Constructors
- IoLogSink.new(LogRecordFormatter formatter, [LogFilter logFilter = const LogFilter.none()])
Properties
- filter → LogFilter
-
finalinherited
- formatter → LogRecordFormatter
-
Used to format LogRecord before printing it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> -
Cancels all subscriptions to log-streams.
inherited
-
listenTo(
Stream< LogRecord> logStream) → void -
Starts listening for new log-records from the
logStream
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
LogRecord logRecord) → Future< void> -
Writes
logRecord
to wherever this sink goes.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited