org.apache.cxf.management.web.logging
Enum LogLevel

java.lang.Object
  extended by java.lang.Enum<LogLevel>
      extended by org.apache.cxf.management.web.logging.LogLevel
All Implemented Interfaces:
Serializable, Comparable<LogLevel>

public enum LogLevel
extends Enum<LogLevel>

Log level of LogRecord. Based on SLF4J being popular facade for loggers like JUL, Log4J, JCL and so on. Severities order is: FATAL > ERROR > WARN > INFO > DEBUG > TRACE.

Mapping of levels:

  1. JUL - same as SLF4J approach.
  2. Log4J - levels are identical


Enum Constant Summary
ALL
           
DEBUG
           
ERROR
           
FATAL
           
INFO
           
OFF
           
TRACE
           
WARN
           
 
Method Summary
static LogLevel fromJUL(Level level)
          Creates this enum from JUL Level.
static Level toJUL(LogLevel level)
          Creates this JUL Level from this enum.
static LogLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LogLevel[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALL

public static final LogLevel ALL

FATAL

public static final LogLevel FATAL

ERROR

public static final LogLevel ERROR

WARN

public static final LogLevel WARN

INFO

public static final LogLevel INFO

DEBUG

public static final LogLevel DEBUG

TRACE

public static final LogLevel TRACE

OFF

public static final LogLevel OFF
Method Detail

values

public static final LogLevel[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(LogLevel c : LogLevel.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static LogLevel 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 name

fromJUL

public static LogLevel fromJUL(Level level)
Creates this enum from JUL Level.


toJUL

public static Level toJUL(LogLevel level)
Creates this JUL Level from this enum.



Apache CXF