logError abstract method

void logError(
  1. dynamic exception, [
  2. dynamic stacktrace
])

Use logError, in a similar fashion to logFatal, should be used to capture a situation that cannot be fixed and requires a special level of attention. However, in this case you can use this method to capture an exception and a stacktrace, in case your irreparable situation represents a crash in your code.

Implementation

void logError(dynamic exception, [dynamic stacktrace]);