PeriodicLazyLumberdash class

The periodic implementation of LazyLumberdash. It receives a duration and then on the first log call starts a periodic Timer that will call dispatchLogCalls every duration.

Inheritance

Constructors

PeriodicLazyLumberdash({required LumberdashClient client, required Duration duration})

Properties

duration Duration
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

close() → void
Calls dispatchLogCalls
override
dispatchLogCalls() → void
Dispatches all log calls that exist on _logCalls array in a FIFO order. Uses _lock to grant mutual exclusion access on the log calls dispatch.
inherited
logError(dynamic exception, [dynamic stacktrace]) → void
Registers a _innerLumberdashClient logError call on _logCalls
inherited
logFatal(String message, [Map<String, String>? extras]) → void
Registers a _innerLumberdashClient logFatal call on _logCalls
inherited
logMessage(String message, [Map<String, String>? extras]) → void
Registers a _innerLumberdashClient logMessage call on _logCalls
inherited
logWarning(String message, [Map<String, String>? extras]) → void
Registers a _innerLumberdashClient logWarning call on _logCalls
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onNewLogCall(void call()) → void
Override this method to listen to new log calls and decide whether or not you should call dispatchLogCalls.
override
registerLogCall(void call()) → void
Endpoint for _innerLumberdashClient log calls registry on _logCalls. Notifies the implementer after register the call, by call onNewLogCall.
inherited
toString() String
A string representation of this object.
inherited

Operators

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