@Override
    public void setLevel(int level) {
        switch (level) {
            case TRACE:
                log4jLogger.setLevel(Level.TRACE);
                break;
            case DEBUG:
                log4jLogger.setLevel(Level.DEBUG);
                break;
            case INFO:
                log4jLogger.setLevel(Level.INFO);
                break;
            case WARN:
                log4jLogger.setLevel(Level.WARN);
                break;
            case ERROR:
                log4jLogger.setLevel(Level.ERROR);
                break;
            case FATAL:
                log4jLogger.setLevel(Level.FATAL);
                break;
            default:
                throw new IllegalArgumentException("Invalid log level: " + level);
        }
    }
@ Override public void setLevel ( int level ) { switch ( level ) { case TRACE : log4jLogger . setLevel ( Level . TRACE ) ; break ; case DEBUG : log4jLogger . setLevel ( Level . DEBUG ) ; break ; case INFO : log4jLogger . setLevel ( Level . INFO ) ; break ; case WARN : log4jLogger . setLevel ( Level . WARN ) ; break ; case ERROR : log4jLogger . setLevel ( Level . ERROR ) ; break ; case FATAL : log4jLogger . setLevel ( Level . FATAL ) ; break ; default : throw new IllegalArgumentException ( "Invalid log level: " + level ) ; } }
{@inheritDoc}