org.mmbase.util.logging
Class Level

java.lang.Object
  |
  +--org.mmbase.util.logging.Level

public final class Level
extends java.lang.Object

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.

Author:
Michiel Meeuwissen

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 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
 int toInt()
          Makes an integer from this object.
static Level toLevel(java.lang.String level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_INT

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

DEBUG_INT

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

SERVICE_INT

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

INFO_INT

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

WARN_INT

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

ERROR_INT

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

FATAL_INT

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

TRACE

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

DEBUG

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

SERVICE

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

INFO

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

WARN

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

ERROR

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

FATAL

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

toLevel

public static Level toLevel(java.lang.String level)

toInt

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


MMBase 2001