code: @Override
      public int getLevel() {
          Level level = log4jLogger.getLevel();
          if (level == null)
              level = Logger.getRootLogger().getLevel();
          switch (level.toInt()) {
              case Level.TRACE_INT:
                  return TRACE;
              case Level.DEBUG_INT:
                  return DEBUG;
              case Level.INFO_INT:
                  return INFO;
              case Level.WARN_INT:
                  return WARN;
              case Level.ERROR_INT:
                  return ERROR;
              case Level.FATAL_INT:
                  return FATAL;
              default:
                  throw new IllegalArgumentException("Unsupported log4j level: " + level);
          }
      }
docs: {@inheritDoc}