org.openmdx.kernel.log
Interface LogLevel


public interface LogLevel

System Event Categories

The logging system provides six system event categories.

Logging configuration

To set up your own logging configuration that differs from the default behaviour, create in the application's start directory a log property file named "XXX.log.properties".

This "XXX.log.properties" sample activates all logging levels up to level 6 (TRACE), enables performance traces and logs to a file:

        LogFileExtension = log
        LogFilePath =
        LogLevel = trace
        java.LoggingMechanism = SharedFileLoggingMechanism
        LogFieldSeparator = |
        LogPerformance = true
        LogStatistics = true
        LogNotification = false 
 


Field Summary
static int LOG_LEVEL_CRITICAL_ERROR
          The system encountered a critical error at this logging level, which affects the accuracy, integrity, reliability, or capability of the system.
static int LOG_LEVEL_DEACTIVATE
          Turns the log completely off, no messages are logged
static int LOG_LEVEL_DETAIL
          Moderately detailed logging level to be used to help debug typical problems in the system.
static int LOG_LEVEL_ERROR
          The system encountered an unexpected error at this logging level, which probably means the code intercepted an error it cannot handle.
static int LOG_LEVEL_INFO
          Normal logging level.
static int LOG_LEVEL_MAX
          Maximal standard log level
static int LOG_LEVEL_MIN
          Minimal standard log level
static int LOG_LEVEL_TRACE
          Most detailed logging level.
static int LOG_LEVEL_WARNING
          The system encountered an expected error situation.
static int LOG_NOTIFICATION
          Notification logging level to be used to protocol log framework internal state changes.
static int LOG_PERFORMANCE
          Performance logging level to be used to help finding performance problems in the system.
static int LOG_STATISTICS
          Statistics logging level to be used to protocol application statistics This level is handled independently from all other logging levels, meaning that it can be turned on and off without affecting the other levels.
 

Field Detail

LOG_LEVEL_DEACTIVATE

static final int LOG_LEVEL_DEACTIVATE
Turns the log completely off, no messages are logged

See Also:
Constant Field Values

LOG_LEVEL_CRITICAL_ERROR

static final int LOG_LEVEL_CRITICAL_ERROR
The system encountered a critical error at this logging level, which affects the accuracy, integrity, reliability, or capability of the system. Someone should be paged to address the error as soon as possible.

Critical errors must explicitely be logged by the application.

See Also:
Constant Field Values

LOG_LEVEL_ERROR

static final int LOG_LEVEL_ERROR
The system encountered an unexpected error at this logging level, which probably means the code intercepted an error it cannot handle. This error is not of a critical nature and can be recovered from automatically.

Someone should probably be emailed to resolve the error in the near future to increase the reliability of the product.

Errors must explicitely be logged by the application.

See Also:
Constant Field Values

LOG_LEVEL_WARNING

static final int LOG_LEVEL_WARNING
The system encountered an expected error situation. The system recovered from it but the fact that it happened should be recorded to see how frequent it happens.

Warnings must explicitely be logged by the application.

See Also:
Constant Field Values

LOG_LEVEL_INFO

static final int LOG_LEVEL_INFO
Normal logging level. All interesting periodic events should be logged at this level so someone looking through the log can see the amount and kind of processing happening in the system.

The application may log at this level. E.g. the application framework logs start, stop and command line options at this level.

See Also:
Constant Field Values

LOG_LEVEL_DETAIL

static final int LOG_LEVEL_DETAIL
Moderately detailed logging level to be used to help debug typical problems in the system. Not so detailed that the big picture gets lost.

See Also:
Constant Field Values

LOG_LEVEL_TRACE

static final int LOG_LEVEL_TRACE
Most detailed logging level. Everything sent to the log will be logged. Use this level to trace system execution for really nasty problems.

The application may log at this level. E.g. SQL traces.

Avoid method-level tracing (that is, logging the entrance and exit to each method). Actually the BasicException provides enough stack trace information in case of errors.

See Also:
Constant Field Values

LOG_PERFORMANCE

static final int LOG_PERFORMANCE
Performance logging level to be used to help finding performance problems in the system. This level is handled independently from all other logging levels, meaning that it can be turned on and off without affecting the other levels.

The application may log at this level.

See Also:
Constant Field Values

LOG_STATISTICS

static final int LOG_STATISTICS
Statistics logging level to be used to protocol application statistics This level is handled independently from all other logging levels, meaning that it can be turned on and off without affecting the other levels.

The application may log at this level.

See Also:
Constant Field Values

LOG_NOTIFICATION

static final int LOG_NOTIFICATION
Notification logging level to be used to protocol log framework internal state changes. E.g. Openening and closing of logging mechanisms, changeing logging level, ...

The application MUST NOT log at this level.

See Also:
Constant Field Values

LOG_LEVEL_MIN

static final int LOG_LEVEL_MIN
Minimal standard log level

See Also:
Constant Field Values

LOG_LEVEL_MAX

static final int LOG_LEVEL_MAX
Maximal standard log level

See Also:
Constant Field Values


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.