setup method

void setup()

Setup logger configuration.

Implementation

void setup() {
  Logger.root.level = Level.ALL;
  Logger.root.onRecord.listen(
    (rec) {
      // ignore: avoid_print
      print(
        '[${rec.time} | ${rec.loggerName} | ${rec.level.name}] '
        '${rec.message}',
      );
    },
  );
}