toolbox.services.util.logging
Class LogLevel

Package class diagram package LogLevel
java.lang.Object
  extended by toolbox.services.util.logging.LogLevel

public class LogLevel
extends java.lang.Object

Simple class to indicate a log level.


Field Summary
static LogLevel ERROR
          Level representing ERROR.
static LogLevel FATAL
          Level representing FATAL.
static LogLevel INFO
          Level representing INFO.
static LogLevel WARN
          Level representing WARN.
 
Constructor Summary
LogLevel(java.lang.String level)
          Initialise this LogLevel with the given string description.
 
Method Summary
 int toInt()
          Return an int representation of this level.
 java.lang.String toString()
          Return a String representation of this level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFO

public static LogLevel INFO
Level representing INFO.


WARN

public static LogLevel WARN
Level representing WARN.


ERROR

public static LogLevel ERROR
Level representing ERROR.


FATAL

public static LogLevel FATAL
Level representing FATAL.

Constructor Detail

LogLevel

public LogLevel(java.lang.String level)
Initialise this LogLevel with the given string description.

Parameters:
level - String indicating the log level.
Method Detail

toString

public java.lang.String toString()
Return a String representation of this level.

Overrides:
toString in class java.lang.Object
Returns:
String representing this level.

toInt

public int toInt()
Return an int representation of this level.

Returns:
int representing this level.