cern.cmw
Class LogLevel

java.lang.Object
  extended by cern.cmw.LogLevel

public class LogLevel
extends Object

Defines a set of standard logging levels that can be used to control logging output. The levels are ordered by "verbosity" of the log output: - DEBUG (highest) - TRACE - INFO - WARNING - ERROR (lowest) Enabling logging at a given level also enables logging at all lower levels.

See Also:
Logger

Field Summary
static LogLevel ALL
          A special level which indicates that all messages shall be logged.
static LogLevel DEBUG
          A message level providing highly detailed tracing information.
static LogLevel ERROR
          A message level indicating a serious problem.
static LogLevel INFO
          A message level for information messages
static LogLevel OFF
          A special level that can be used to turn off logging.
static LogLevel TRACE
          A message level providing tracing information.
static LogLevel WARNING
          A message level indicating a potential problem.
 
Method Summary
 boolean encompasses(LogLevel level)
          Returns true if the level supplied is encompassed by this level.
 boolean equals(LogLevel level)
          Returns true if the specified level is equal to this level.
static LogLevel fromCorba(cern.cmw.corba.admin.ServerAdminPackage.LogLevel level)
           
 String getName()
          Returns the string name of the LogLevel.
static LogLevel parse(String name)
          Returns the log level corresponding to the given name.
 cern.cmw.corba.admin.ServerAdminPackage.LogLevel toCorba()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFF

public static final LogLevel OFF
A special level that can be used to turn off logging.


ERROR

public static final LogLevel ERROR
A message level indicating a serious problem.


WARNING

public static final LogLevel WARNING
A message level indicating a potential problem.


INFO

public static final LogLevel INFO
A message level for information messages


TRACE

public static final LogLevel TRACE
A message level providing tracing information.


DEBUG

public static final LogLevel DEBUG
A message level providing highly detailed tracing information.


ALL

public static final LogLevel ALL
A special level which indicates that all messages shall be logged.

Method Detail

parse

public static LogLevel parse(String name)
                      throws BadParameter
Returns the log level corresponding to the given name.

Throws:
BadParameter - indicates that the string doesn't correspond to a log level

getName

public String getName()
Returns the string name of the LogLevel.


equals

public boolean equals(LogLevel level)
Returns true if the specified level is equal to this level.


encompasses

public boolean encompasses(LogLevel level)
Returns true if the level supplied is encompassed by this level. For example, LogLevel.OFF encompasses no other LogLevels and LogLevel.ALL encompasses all other LogLevels. By definition, a LogLevel encompasses itself.


toCorba

public cern.cmw.corba.admin.ServerAdminPackage.LogLevel toCorba()

fromCorba

public static LogLevel fromCorba(cern.cmw.corba.admin.ServerAdminPackage.LogLevel level)


Copyright © 2007 CERN. All Rights Reserved.