logWarning function
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.
Implementation
String logWarning(
String message, {
Map<String, String>? extras,
List<Type> exceptFor = const [],
}) {
_filterOutClientsAndLog(exceptFor, (c) => c.logWarning(message, extras));
return message;
}