except method

  1. @override
void except(
  1. Exception exception, [
  2. StackTrace? stackTrace
])
override

Logs an exception with LogLevel.except.

Implementation

@override
void except(Exception exception, [StackTrace? stackTrace]) {
  if (canLog(LogLevel.except)) {
    final stackLog = stackTrace != null ? '\n$stackTrace' : '';
    outSink.writeln('  [EXC] $exception$stackLog');
  }
}