de.uni_paderborn.fujaba.logging
Class LoggerInfo

java.lang.Object
  extended byde.uni_paderborn.fujaba.logging.LoggerInfo

public class LoggerInfo
extends java.lang.Object

Information about a logger

Version:
$Revision: 1.6 $
Author:
$Author: schneider $

Field Summary
static java.lang.String DEBUG
          Constant to represent the logging level DEBUG
static java.lang.String ERROR
          Constant to represent the logging level ERROR
static java.lang.String FATAL
          Constant to represent the logging level FATAL
static java.lang.String INFO
          Constant to represent the logging level INFO
static java.lang.String INHERITED
          Constant to represent that a logger should inherit its level
static java.lang.String[] LEVELS
          Convenience array containing all the logging constants
static java.lang.String OFF
          Constant to represent the logging level OFF (ie, do not log)
static java.lang.String WARN
          Constant to represent the logging level WARN
 
Constructor Summary
LoggerInfo(java.lang.String aName, java.lang.String aLevel)
          Creates a new LoggerInfo object
 
Method Summary
 java.lang.String getLevel()
          Get the level of the logger which this object contains info about
 java.lang.String getName()
          Get the name of the logger which this object contains info about
 void setLevel(java.lang.String aLevel)
          Set the level which the logger which this object contains info about should log at
 java.lang.String toString()
          Generate a string representing the info containing in this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INHERITED

public static final java.lang.String INHERITED
Constant to represent that a logger should inherit its level

See Also:
Constant Field Values

DEBUG

public static final java.lang.String DEBUG
Constant to represent the logging level DEBUG

See Also:
Constant Field Values

INFO

public static final java.lang.String INFO
Constant to represent the logging level INFO

See Also:
Constant Field Values

WARN

public static final java.lang.String WARN
Constant to represent the logging level WARN

See Also:
Constant Field Values

ERROR

public static final java.lang.String ERROR
Constant to represent the logging level ERROR

See Also:
Constant Field Values

FATAL

public static final java.lang.String FATAL
Constant to represent the logging level FATAL

See Also:
Constant Field Values

OFF

public static final java.lang.String OFF
Constant to represent the logging level OFF (ie, do not log)

See Also:
Constant Field Values

LEVELS

public static final java.lang.String[] LEVELS
Convenience array containing all the logging constants

Constructor Detail

LoggerInfo

public LoggerInfo(java.lang.String aName,
                  java.lang.String aLevel)
Creates a new LoggerInfo object

Parameters:
aName - the name of the logger
aLevel - the level which the logger is logging at
Method Detail

toString

public java.lang.String toString()
Generate a string representing the info containing in this object

Returns:
a String representation of this object

getName

public java.lang.String getName()
Get the name of the logger which this object contains info about

Returns:
the name of the logger

getLevel

public java.lang.String getLevel()
Get the level of the logger which this object contains info about

Returns:
the level of the logger

setLevel

public void setLevel(java.lang.String aLevel)
Set the level which the logger which this object contains info about should log at

Parameters:
aLevel - the level the logger should log at