public enum SyslogSeverity extends Enum<SyslogSeverity>
Enum Constant and Description |
---|
ALERT |
ALL |
CRITICAL |
DEBUG |
EMERGENCY |
ERROR |
INFORMATIONAL |
NOTICE |
UNKNOWN |
WARNING |
Modifier and Type | Field and Description |
---|---|
static int |
MASK |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
int |
getPriority(SyslogFacility facility) |
static SyslogSeverity |
getSeverity(int severity) |
static SyslogSeverity |
getSeverityForCode(int code) |
int |
getSeverityNumber() |
String |
toString() |
static SyslogSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SyslogSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyslogSeverity EMERGENCY
public static final SyslogSeverity ALERT
public static final SyslogSeverity CRITICAL
public static final SyslogSeverity ERROR
public static final SyslogSeverity WARNING
public static final SyslogSeverity NOTICE
public static final SyslogSeverity INFORMATIONAL
public static final SyslogSeverity DEBUG
public static final SyslogSeverity ALL
public static final SyslogSeverity UNKNOWN
public static final int MASK
public static SyslogSeverity[] values()
for (SyslogSeverity c : SyslogSeverity.values()) System.out.println(c);
public static SyslogSeverity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getSeverityNumber()
public String getDescription()
public int getPriority(SyslogFacility facility)
public String toString()
toString
in class Enum<SyslogSeverity>
public static SyslogSeverity getSeverity(int severity)
public static SyslogSeverity getSeverityForCode(int code)
Copyright © 2021. All rights reserved.