setUpAppMetricaLogger function

void setUpAppMetricaLogger(
  1. Logger logger
)

Implementation

void setUpAppMetricaLogger(Logger logger) {
  hierarchicalLoggingEnabled = true;
  logger.level = Level.ALL;
  logger.onRecord.listen((event) {
    log(event.message,
        error: event.error,
        stackTrace: event.stackTrace,
        sequenceNumber: event.sequenceNumber,
        name: event.loggerName,
        time: event.time,
        zone: event.zone,
        level: event.level.value);
  });
}