code: protected static Event.Level formatLevel(Level level) {
          if (level.isMoreSpecificThan(Level.FATAL)) {
              return Event.Level.FATAL;
          } else if (level.isMoreSpecificThan(Level.ERROR)) {
              return Event.Level.ERROR;
          } else if (level.isMoreSpecificThan(Level.WARN)) {
              return Event.Level.WARNING;
          } else if (level.isMoreSpecificThan(Level.INFO)) {
              return Event.Level.INFO;
          } else {
              return Event.Level.DEBUG;
          }
      }
docs: Transforms a {@link Level} into an {@link Event.Level}.
  
  @param level original level as defined in log4j2.
  @return log level used within sentry.