Package org.owasp.esapi.logging.java
Enum JavaLogLevelHandlers
- java.lang.Object
-
- java.lang.Enum<JavaLogLevelHandlers>
-
- org.owasp.esapi.logging.java.JavaLogLevelHandlers
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JavaLogLevelHandlers>
public enum JavaLogLevelHandlers extends java.lang.Enum<JavaLogLevelHandlers>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled(java.util.logging.Logger logger)
void
log(java.util.logging.Logger logger, java.lang.String msg)
void
log(java.util.logging.Logger logger, java.lang.String msg, java.lang.Throwable th)
static JavaLogLevelHandlers
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JavaLogLevelHandlers[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEVERE
public static final JavaLogLevelHandlers SEVERE
-
WARNING
public static final JavaLogLevelHandlers WARNING
-
INFO
public static final JavaLogLevelHandlers INFO
-
CONFIG
public static final JavaLogLevelHandlers CONFIG
-
FINE
public static final JavaLogLevelHandlers FINE
-
FINER
public static final JavaLogLevelHandlers FINER
-
FINEST
public static final JavaLogLevelHandlers FINEST
-
ALWAYS
public static final JavaLogLevelHandlers ALWAYS
-
ERROR
public static final JavaLogLevelHandlers ERROR
-
-
Method Detail
-
values
public static JavaLogLevelHandlers[] 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 (JavaLogLevelHandlers c : JavaLogLevelHandlers.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JavaLogLevelHandlers 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
-
isEnabled
public boolean isEnabled(java.util.logging.Logger logger)
-
log
public void log(java.util.logging.Logger logger, java.lang.String msg)
-
log
public void log(java.util.logging.Logger logger, java.lang.String msg, java.lang.Throwable th)
-
-