write method

  1. @override
void write(
  1. LogEntry entry,
  2. String formatted
)
override

Writes a single, already-formatted log entry.

Implementation

@override
void write(LogEntry entry, String formatted) {
  // ignore: avoid_print
  print(formatted);
  if (entry.error != null && entry.stackTrace != null) {
    // ignore: avoid_print
    print(entry.stackTrace.toString());
  }
}