public enum SyslogSeverity extends java.lang.Enum<SyslogSeverity>
Enum Constant | Description |
---|---|
ALERT |
Action must be taken immediately.
|
CRITICAL |
Critical conditions.
|
DEBUG |
Debug level messages.
|
EMERGENCY |
System is unusable.
|
ERROR |
Error conditions.
|
INFORMATIONAL |
Informational messages.
|
NOTICE |
Normal but significant conditions.
|
WARNING |
Warning conditions.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getCode() |
Returns the severity code.
|
static SyslogSeverity |
getSeverity(org.tinylog.Level level) |
Returns the Severity for the specified Level.
|
static SyslogSeverity |
valueOf(java.lang.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 SyslogSeverity[] values()
for (SyslogSeverity c : SyslogSeverity.values()) System.out.println(c);
public static SyslogSeverity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCode()
public static SyslogSeverity getSeverity(org.tinylog.Level level)
level
- The Level.Copyright © 2024. All rights reserved.