org.mmbase.util.logging
Class Level

java.lang.Object
  extended by org.mmbase.util.logging.Level
All Implemented Interfaces:
Serializable

public final class Level
extends Object
implements Serializable

This class is a kind of `enum' type, for logging priorities. It has static instances and only a private constructor. And a function to translate to an int, which is handy for use in a switch.

Version:
$Id: Level.java 42592 2010-06-17 12:24:02Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
static Level DEBUG
          A constant.
static int DEBUG_INT
          A possible result of toInt()
static Level ERROR
          A constant.
static int ERROR_INT
          A possible result of toInt()
static Level FATAL
          A constant.
static int FATAL_INT
          A possible result of toInt()
static Level INFO
          A constant.
static int INFO_INT
          A possible result of toInt()
static Level OFF
          A constant.
static int OFF_INT
          A possible result of toInt()
static Level SERVICE
          A constant.
static int SERVICE_INT
          A possible result of toInt()
static Level TRACE
          A constant.
static int TRACE_INT
          A possible result of toInt()
static Level WARN
          A constant.
static int WARN_INT
          A possible result of toInt()
 
Method Summary
static Level[] getLevels()
           
 int toInt()
          Makes an integer from this object.
static Level toLevel(String level)
           
 String toString()
           
static Level valueOf(String level)
          Like valueOf of real enumerations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRACE_INT

public static final int TRACE_INT
A possible result of toInt()

See Also:
Constant Field Values

DEBUG_INT

public static final int DEBUG_INT
A possible result of toInt()

See Also:
Constant Field Values

SERVICE_INT

public static final int SERVICE_INT
A possible result of toInt()

See Also:
Constant Field Values

INFO_INT

public static final int INFO_INT
A possible result of toInt()

See Also:
Constant Field Values

WARN_INT

public static final int WARN_INT
A possible result of toInt()

See Also:
Constant Field Values

ERROR_INT

public static final int ERROR_INT
A possible result of toInt()

See Also:
Constant Field Values

FATAL_INT

public static final int FATAL_INT
A possible result of toInt()

See Also:
Constant Field Values

OFF_INT

public static final int OFF_INT
A possible result of toInt()

See Also:
Constant Field Values

TRACE

public static final Level TRACE
A constant. Main use is for the method Logger.setLevel(org.mmbase.util.logging.Level)


DEBUG

public static final Level DEBUG
A constant. Main use is for the method Logger.setLevel(org.mmbase.util.logging.Level)


SERVICE

public static final Level SERVICE
A constant. Main use is for the method Logger.setLevel(org.mmbase.util.logging.Level)


INFO

public static final Level INFO
A constant. Main use is for the method Logger.setLevel(org.mmbase.util.logging.Level)


WARN

public static final Level WARN
A constant. Main use is for the method Logger.setLevel(org.mmbase.util.logging.Level)


ERROR

public static final Level ERROR
A constant. Main use is for the method Logger.setLevel(org.mmbase.util.logging.Level)


FATAL

public static final Level FATAL
A constant. Main use is for the method Logger.setLevel(org.mmbase.util.logging.Level)


OFF

public static final Level OFF
A constant. Main use is for the method Logger.setLevel(org.mmbase.util.logging.Level)

Method Detail

getLevels

public static Level[] getLevels()
Since:
MMBase-2.0

toLevel

public static Level toLevel(String level)

valueOf

public static Level valueOf(String level)
Like valueOf of real enumerations.

Since:
MMBase-1.9.1

toInt

public final int toInt()
Makes an integer from this object.


toString

public final String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null