RemoteLoggerWorker class

Implemented types

Constructors

RemoteLoggerWorker({required String serverUrl, Map<String, String>? headers, int batchSize = 10, Duration flushInterval = const Duration(seconds: 5), RemoteRequestBodyBuilder? requestBodyBuilder})

Properties

batchSize → int
The number of logs to buffer before sending.
final
flushInterval → Duration
The interval at which to flush logs if the batch size hasn't been reached.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
Custom headers to include in the request.
final
requestBodyBuilder → RemoteRequestBodyBuilder?
Custom builder for the request body.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverUrl → String
The server URL to send log messages to.
final

Methods

dispose() → Future<void>
Disposes of the worker, releasing any resources.
override
log(String message) → Future<void>
Logs a message. message is the log message to be processed by the worker.
override
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