public void setSeverity ( byte severity ) throws IllegalArgumentException { if ( severity < SyslogMessage . SEVERITY_EMERGENCY || severity > SyslogMessage . SEVERITY_DEBUG ) { throw new IllegalArgumentException ( "Not a valid severity." ) ; } this . severity = severity ; }
Get the severity at which the message shall be sent .