logMessage function

String logMessage(
  1. String message, {
  2. Map<String, String>? extras,
  3. List<Type> exceptFor = const [],
})

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.

Implementation

String logMessage(
  String message, {
  Map<String, String>? extras,
  List<Type> exceptFor = const [],
}) {
  _filterOutClientsAndLog(exceptFor, (c) => c.logMessage(message, extras));
  return message;
}