LoggerService constructor

LoggerService({
  1. required LogLevel level,
  2. bool debugMode = kDebugMode,
})

Implementation

LoggerService({
  required LogLevel level,
  bool debugMode = kDebugMode,
}) {
  _logger = Logger(
    level: level.toLevel(),
    printer: PrettyPrinter(methodCount: null),
  );
  if (debugMode && level == LogLevel.error) {
    Logger.addLogListener(_logListener);
  }
}