BaseLogSender class abstract

Base appender for services which should buffer log messages before handling them. (eg. because they use network traffic which make it unfeasible to send every log line on it's own).

Inheritance
Implementers

Constructors

BaseLogSender({LogRecordFormatter? formatter, int? bufferSize})

Properties

bufferSize int
Maximum number of log entries to buffer before triggering sending of log entries. (default: 500)
final
formatter LogRecordFormatter
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userProperties Map<String, String>
no getter

Methods

attachToLogger(Logger logger) → void
inherited
call(LogRecord record) → void
inherited
detachFromLoggers() Future<void>
inherited
dispose() Future<void>
override
flush() Future<void>
handle(LogRecord record) → void
override
log(Level logLevel, DateTime time, String line, Map<String, String> lineLabels) Future<void>
logListener() → LogRecordListener
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendLogEvents(List<LogEntry> logEntries, Map<String, String> userProperties) Stream<void>
toString() String
A string representation of this object.
inherited

Operators

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