public enum LogPriority extends Enum<LogPriority>
Enum Constant and 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 and Description |
---|---|
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
http://en.wikipedia.org/wiki/Syslog
public static final LogPriority ALERT
http://en.wikipedia.org/wiki/Syslog
public static final LogPriority CRITICAL
http://en.wikipedia.org/wiki/Syslog
public static final LogPriority ERROR
http://en.wikipedia.org/wiki/Syslog
public static final LogPriority WARN
http://en.wikipedia.org/wiki/Syslog
public static final LogPriority NOTICE
http://en.wikipedia.org/wiki/Syslog
public static final LogPriority INFO
http://en.wikipedia.org/wiki/Syslog
public static final LogPriority DEBUG
http://en.wikipedia.org/wiki/Syslog
public static final LogPriority TRACE
TRACE provides even more comments for the developer when debugging.
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()
Copyright © 2016. All rights reserved.