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
-
- Object
- LumberdashClient
- LazyLumberdash
- PeriodicLazyLumberdash
Constructors
- PeriodicLazyLumberdash({required LumberdashClient client, required Duration duration})
Properties
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 callonNewLogCall
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited