LogzIoApiAppender class

Appender which sends all logs to https://logz.io/ Uses

Inheritance

Constructors

LogzIoApiAppender({LogRecordFormatter? formatter, required String apiToken, required Map<String, String> labels, String url = 'https://listener.logz.io:8071/', String type = 'flutterlog', int? bufferSize})

Properties

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

Methods

attachToLogger(Logger logger) → void
inherited
call(LogRecord record) → void
inherited
dispose() Future<void>
inherited
flush() Future<void>
inherited
handle(LogRecord record) → void
inherited
log(Level logLevel, DateTime time, String line, Map<String, String> lineLabels) Future<void>
inherited
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>
inherited
sendLogEventsWithDio(List<LogEntry> entries, Map<String, String> userProperties, CancelToken cancelToken) Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

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