lazy_lumberdash library

Classes

LazyLumberdash
LazyLumberdash is an abstraction of LumberdashClient that registers log calls on an array, using registerLogCall to be later drained when calling dispatchLogCalls.
LumberdashClient
LumberdashClient defines the API for producing logs.
PeriodicLazyLumberdash
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.
StackLazyLumberdash
The stack limit implementation of LazyLumberdash. It receives an integer that defines the limit calls that can be stored in _logCalls before dispatchLogCalls is called.

Functions

logError(dynamic exception, {dynamic stacktrace, List<Type> exceptFor = const []}) → dynamic
It calls the logError method of the each LumberdashClient passed to putLumberdashToWork, and returns the given exception. If you want to avoid logging to a particular client that was previously registered in putLumberdashToWork#withClients, use exceptFor to filter out that client.
logFatal(String message, {Map<String, String>? extras, List<Type> exceptFor = const []}) String
It calls the logFatal method of the each LumberdashClient passed to putLumberdashToWork, and returns the given message. If you want to avoid logging to a particular client that was previously registered in putLumberdashToWork#withClients, use exceptFor to filter out that client.
logMessage(String message, {Map<String, String>? extras, List<Type> exceptFor = const []}) String
It calls the logMessage method of the each LumberdashClient passed to putLumberdashToWork, and returns the given message. If you want to avoid logging to a particular client that was previously registered in putLumberdashToWork#withClients, use exceptFor to filter out that client.
logWarning(String message, {Map<String, String>? extras, List<Type> exceptFor = const []}) String
It calls the logWarning method of the each LumberdashClient passed to putLumberdashToWork, and returns the given message. If you want to avoid logging to a particular client that was previously registered in putLumberdashToWork#withClients, use exceptFor to filter out that client.
putLumberdashToWork({required List<LumberdashClient> withClients}) → dynamic
As it name says, it puts Lumberdash to work by setting up its LumberdashClient. The full power of Lumberdash can be achieved when you use a custom LumberdashClient, or multiple clients, that can fit your logging requirements.

Typedefs

Logger = dynamic Function(LumberdashClient client)