logError function

dynamic logError(
  1. dynamic exception, {
  2. dynamic stacktrace,
  3. List<Type> exceptFor = const [],
})

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.

Implementation

dynamic logError(
  dynamic exception, {
  dynamic stacktrace,
  List<Type> exceptFor = const [],
}) {
  _filterOutClientsAndLog(exceptFor, (c) => c.logError(exception, stacktrace));
  return exception;
}