flux.logging
Enum Level

java.lang.Object
  extended by java.lang.Enum<Level>
      extended by flux.logging.Level
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Level>

public enum Level
extends java.lang.Enum<Level>

Enumerates supported logging levels. These levels correspond to the logging levels in the JDK; however, there are standard mappings to Log4j. These standard mappings are described within each logging level.

The levels in descending order are:

SEVERE (highest value)
WARNING
INFO
CONFIG
FINE
FINER
FINEST (lowest value)

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Enum Constant Summary
CONFIG
          CONFIG is a message level for static configuration messages.
FINE
          FINE is a message level providing tracing information.
FINER
          FINER indicates a fairly detailed tracing message.
FINEST
          FINEST indicates a highly detailed tracing message.
INFO
          INFO is a message level for informational messages.
SEVERE
          SEVERE is a message level indicating a serious failure.
WARNING
          WARNING is a message level indicating a potential problem.
 
Method Summary
static Level valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Level[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SEVERE

public static final Level SEVERE
SEVERE is a message level indicating a serious failure. Corresponds to the Log4j logging level org.apache.log4j.Priority.ERROR. Also corresponds to the Commons Logging level "error".


WARNING

public static final Level WARNING
WARNING is a message level indicating a potential problem. Corresponds to the Log4j logging level org.apache.log4j.Priority.WARN. Also corresponds to the Commons Logging level "warning".


INFO

public static final Level INFO
INFO is a message level for informational messages. Corresponds to the Log4j logging level org.apache.log4j.Priority.INFO. Also corresponds to the Commons Logging level "info".


CONFIG

public static final Level CONFIG
CONFIG is a message level for static configuration messages. Corresponds to the Log4j logging level org.apache.log4j.Priority.DEBUG. Also corresponds to the Commons Logging level "debug".


FINE

public static final Level FINE
FINE is a message level providing tracing information. Corresponds to the Log4j logging level org.apache.log4j.Priority.DEBUG. Also corresponds to the Commons Logging level "debug".


FINER

public static final Level FINER
FINER indicates a fairly detailed tracing message. Corresponds to the Log4j logging level org.apache.log4j.Priority.DEBUG. Also corresponds to the Commons Logging level "trace".


FINEST

public static final Level FINEST
FINEST indicates a highly detailed tracing message. Corresponds to the Log4j logging level org.apache.log4j.Priority.DEBUG. Also corresponds to the Commons Logging level "trace".

Method Detail

values

public static 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 (Level c : 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 Level 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 name
java.lang.NullPointerException - if the argument is null


© 2014 Flux Corporation. All rights reserved.