Package net.sf.basedb.util.extensions
Enum LoggingErrorHandlerFactory.Level
- java.lang.Object
-
- java.lang.Enum<LoggingErrorHandlerFactory.Level>
-
- net.sf.basedb.util.extensions.LoggingErrorHandlerFactory.Level
-
- All Implemented Interfaces:
Serializable
,Comparable<LoggingErrorHandlerFactory.Level>
- Enclosing class:
- LoggingErrorHandlerFactory
public static enum LoggingErrorHandlerFactory.Level extends Enum<LoggingErrorHandlerFactory.Level>
Log level implementations for slf4j. Uselog(org.slf4j.Logger, String, Throwable)
to log a message at the given level to the slf4j logger.- Since:
- 3.3
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Level()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
log(org.slf4j.Logger logger, String message, Throwable t)
static LoggingErrorHandlerFactory.Level
valueOf(String name)
Returns the enum constant of this type with the specified name.static LoggingErrorHandlerFactory.Level[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final LoggingErrorHandlerFactory.Level OFF
-
FATAL
public static final LoggingErrorHandlerFactory.Level FATAL
-
ERROR
public static final LoggingErrorHandlerFactory.Level ERROR
-
WARN
public static final LoggingErrorHandlerFactory.Level WARN
-
INFO
public static final LoggingErrorHandlerFactory.Level INFO
-
DEBUG
public static final LoggingErrorHandlerFactory.Level DEBUG
-
TRACE
public static final LoggingErrorHandlerFactory.Level TRACE
-
-
Method Detail
-
values
public static LoggingErrorHandlerFactory.Level[] 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 (LoggingErrorHandlerFactory.Level c : LoggingErrorHandlerFactory.Level.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoggingErrorHandlerFactory.Level valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-