PrintAppender class

Appender which outputs all log records using the given formatter to stdout using print().

Inheritance

Constructors

PrintAppender({LogRecordFormatter? formatter})

Properties

formatter LogRecordFormatter
finalinherited
hashCode int
The hash code for this object.
no setterinherited
printer ↔ (void Function(Object line)?)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachToLogger(Logger logger) → void
inherited
call(LogRecord record) → void
inherited
detachFromLoggers() Future<void>
inherited
dispose() Future<void>
inherited
handle(LogRecord record) → void
override
logListener() → LogRecordListener
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

setupLogging({Level level = Level.ALL, Level stderrLevel = Level.OFF}) PrintAppender
Will setup the root logger with the given level and appends a new PrintAppender to it.