org.j4me.logging
Class Level

java.lang.Object
  extended by org.j4me.logging.Level

public class Level
extends java.lang.Object

Defines the logging level constants. The logging levels are as follows listed in ascending order of importance:

There is also an OFF level. It is used to disable logging.


Field Summary
static Level DEBUG
          The DEBUG level designates fine-grained informational events that are most useful to debug an application.
static Level ERROR
          The ERROR level designates exceptional behavior that causes something in the application to run improperly.
static Level INFO
          The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.
protected  int levelInt
          Integer representation of the level.
static Level OFF
          The OFF level means no log statements will be stored.
static Level WARN
          The WARN level designates potentially harmful situations.
 
Method Summary
 int toInt()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

public static final Level DEBUG
The DEBUG level designates fine-grained informational events that are most useful to debug an application.


INFO

public static final Level INFO
The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.


WARN

public static final Level WARN
The WARN level designates potentially harmful situations.


ERROR

public static final Level ERROR
The ERROR level designates exceptional behavior that causes something in the application to run improperly.


OFF

public static final Level OFF
The OFF level means no log statements will be stored.


levelInt

protected final int levelInt
Integer representation of the level. The lower the number the lower the priority.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
The string represention of this level.

toInt

public int toInt()
Returns:
An integer representation of the log level. It can passed into the setLogLevel method.