public void setSeverity(Severity severity) {
	
        if ((severity.getOrdinal() < SEVERITY_INFO.getOrdinal()) || 
	    (severity.getOrdinal() > SEVERITY_FATAL.getOrdinal())) {
            throw new IllegalArgumentException(String.valueOf(severity));
        }
        this.severity = severity;
	
    }
public void setSeverity ( Severity severity ) { if ( ( severity . getOrdinal ( ) < SEVERITY_INFO . getOrdinal ( ) ) || ( severity . getOrdinal ( ) > SEVERITY_FATAL . getOrdinal ( ) ) ) { throw new IllegalArgumentException ( String . valueOf ( severity ) ) ; } this . severity = severity ; }
<p>Set the severity level.</p>

@param severity The new severity level

@throws IllegalArgumentException if the specified severity level
is not one of the supported values