onLog method

  1. @override
void onLog(
  1. LogRecord record
)
override

Implementation

@override
void onLog(LogRecord record) {
  _file.writeAsStringSync(
    '\n${record.message}',
    mode: FileMode.append,
  );
}