log method

  1. @override
List<String> log(
  1. LogEvent event
)
override

Is called every time a new LogEvent is sent and handles printing or storing the message.

Implementation

@override
List<String> log(LogEvent event) {
  var messageStr = _stringifyMessage(event.message);
  var errorStr = event.error != null ? '  ERROR: ${event.error}' : '';
  var timeStr = printTime ? 'TIME: ${event.time.toIso8601String()}' : '';
  return ['${_labelFor(event.level)} $timeStr $messageStr$errorStr'];
}