ITLogLib2/Java
Help version: Wed 07 Jul 2004

de.itechsoftware.itloglib2
Class ITLogLevel

Object
  |
  +--de.itechsoftware.itloglib2.ITLogLevel

public class ITLogLevel
extends Object

Provides the constants representing the various predefined bit values of the LogLevel property of ITLogMsg instances.

The instances of class ITLogMsg have a LogLevel property which is a combination of these predefined bit values and represents the status or importance of the logmessage.

The loglevels (a short form of "loglevel combinations") of the logmessages are displayed in the ITLogBook application and can be used there to filter logmessages during monitoring and analysing the logging applications.

To combine the ITLogLevel bit values, use '|' (bitwise OR).

ITLogLevel bit values or their combinations can be used for the logLevel parameter of the methods to create new ITLogMsg instances (ITLogMsg.create, ITOutputLogChannel.createLogMsg). The LogLevel of an ITLogMsg instance can also be changed later (but still before sending it) using ITLogMsg.addLogLevel(short) and ITLogMsg.setLogLevel(short), for instance depending on conditions during the program execution.

See Also:
ITLogMsg, ITLogMsg.create(java.lang.String, java.lang.String), ITOutputLogChannel.createLogMsg(java.lang.String, java.lang.String), ITLogMsg.addLogLevel(short), ITLogMsg.setLogLevel(short), ITLogMsg.getLogLevel()

Field Summary
static short LEVEL_ALARM
          This bit indicates that the corresponding logmessage is an alarm message.
static short LEVEL_ERROR
          This bit indicates that the corresponding logmessage is an error message.
static short LEVEL_INFO
          This bit indicates that the corresponding logmessage is an informational message.
static short LEVEL_WARNING
          This bit indicates that the corresponding logmessage is a warning message.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEVEL_INFO

public static short LEVEL_INFO
This bit indicates that the corresponding logmessage is an informational message.

See Also:
LEVEL_WARNING, LEVEL_ERROR, LEVEL_ALARM

LEVEL_WARNING

public static short LEVEL_WARNING
This bit indicates that the corresponding logmessage is a warning message.

See Also:
LEVEL_INFO, LEVEL_ERROR, LEVEL_ALARM

LEVEL_ERROR

public static short LEVEL_ERROR
This bit indicates that the corresponding logmessage is an error message.

See Also:
LEVEL_INFO, LEVEL_WARNING, LEVEL_ALARM

LEVEL_ALARM

public static short LEVEL_ALARM
This bit indicates that the corresponding logmessage is an alarm message.

See Also:
LEVEL_INFO, LEVEL_WARNING, LEVEL_ERROR

ITLogLib2/Java
Help version: Wed 07 Jul 2004

Copyright 1999-2004 iTech Software GmbH, Berlin (Germany). See http://www.itech-software.com.