Enum LogSeverity
- java.lang.Object
-
- java.lang.Enum<LogSeverity>
-
- com.unboundid.directory.sdk.common.types.LogSeverity
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LogSeverity>
@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum LogSeverity extends java.lang.Enum<LogSeverity>
This enum defines the set of severities that may be used for error log and trace log messages.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEBUG
This severity should be used for the most verbose types of messages which should only be used when debugging a problem.FATAL_ERROR
This severity should be used for messages about the most severe types of errors which may prevent the server from continuing to function.INFO
This severity should be used for informational messages about general processing occurring within the server which may be helpful when troubleshooting but are not necessarily important enough to make available to administrators under normal conditions.MILD_ERROR
This severity should be used for messages about errors which may interfere with the processing of the task at hand, but should not have any lasting impact on the overall operation of the server.MILD_WARNING
This severity should be used for messages about warning conditions which may lead to problems which could interfere with the processing of the task at hand.NOTICE
This severity should be used for messages about significant events that occur within the server which may provide administrators with valuable information about the operation of the server.SEVERE_ERROR
This severity should be used for messages about severe errors which may interfere with the function of the server.SEVERE_WARNING
This severity should be used for messages about warning conditions which may lead to problems which could interfere with the operation of the server.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LogSeverity
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LogSeverity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FATAL_ERROR
public static final LogSeverity FATAL_ERROR
This severity should be used for messages about the most severe types of errors which may prevent the server from continuing to function.
-
SEVERE_ERROR
public static final LogSeverity SEVERE_ERROR
This severity should be used for messages about severe errors which may interfere with the function of the server.
-
MILD_ERROR
public static final LogSeverity MILD_ERROR
This severity should be used for messages about errors which may interfere with the processing of the task at hand, but should not have any lasting impact on the overall operation of the server.
-
SEVERE_WARNING
public static final LogSeverity SEVERE_WARNING
This severity should be used for messages about warning conditions which may lead to problems which could interfere with the operation of the server.
-
MILD_WARNING
public static final LogSeverity MILD_WARNING
This severity should be used for messages about warning conditions which may lead to problems which could interfere with the processing of the task at hand.
-
NOTICE
public static final LogSeverity NOTICE
This severity should be used for messages about significant events that occur within the server which may provide administrators with valuable information about the operation of the server.
-
INFO
public static final LogSeverity INFO
This severity should be used for informational messages about general processing occurring within the server which may be helpful when troubleshooting but are not necessarily important enough to make available to administrators under normal conditions.
-
DEBUG
public static final LogSeverity DEBUG
This severity should be used for the most verbose types of messages which should only be used when debugging a problem.
-
-
Method Detail
-
values
public static LogSeverity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LogSeverity c : LogSeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogSeverity valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-