Serializable
, Comparable<LogPriority>
public enum LogPriority extends Enum<LogPriority>
Enum Constant | Description |
---|---|
ALERT |
"Should be corrected immediately, therefore notify staff who can fix the
problem.
|
CRITICAL |
"Should be corrected immediately, but indicates failure in a secondary
system, an example is a loss of a backup ISP connection."
|
DEBUG |
"Info useful to developers for debugging the application, not useful
during operations."
|
DISCARD |
Log is deactivated.
|
ERROR |
"Non-urgent failures, these should be relayed to developers or admins;
each item must be resolved within a given time."
|
INFO |
"Additional information which might be useful for some stability period."
|
NONE |
No priority (has been set yet).
|
NOTICE |
"Events that are unusual but not error conditions - might be summarized
in an email to developers or admins to spot potential problems - no
immediate action required."
|
PANIC |
"A "panic" condition usually affecting multiple apps/servers/sites.
|
TRACE |
"Info useful to developers for debugging the application, not useful
during operations."
|
WARN |
"Warning messages, not an error, but indication that an error will occur
if action is not taken, e.g. file system 85% full - each item must be
resolved within a given time."
|
Modifier and Type | Method | Description |
---|---|---|
String |
getLogLevel() |
The Log-Level is the String representation of the
LogPriority , as
required by the RuntimeLoggerImpl.setLogLevel(String) . |
int |
getPriority() |
Returns the severity of the log priority.
|
static LogPriority |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static LogPriority[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogPriority PANIC
public static final LogPriority ALERT
public static final LogPriority CRITICAL
public static final LogPriority ERROR
public static final LogPriority WARN
public static final LogPriority NOTICE
public static final LogPriority INFO
public static final LogPriority DEBUG
public static final LogPriority TRACE
public static final LogPriority DISCARD
public static final LogPriority NONE
public static LogPriority[] values()
for (LogPriority c : LogPriority.values()) System.out.println(c);
public static LogPriority 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 getPriority()
public String getLogLevel()
LogPriority
, as
required by the RuntimeLoggerImpl.setLogLevel(String)
.LogPriority
.Copyright © 2018. All rights reserved.