org.openmdx.kernel.log.impl
Class LogLog

java.lang.Object
  extended by org.openmdx.kernel.log.impl.LogLog

public class LogLog
extends Object

The LogLog classes provides low level debugging and logging functionality for the logging framework. This debugging facility can be enabled/disbaled.

The class may be used by the logging framework only. Especially mechanism implementations must use this log facility to avoid the recursion trap for unrecoverable errors.

The class is self contained and does not use any other resources from the logging framework (except the logging levels).

The log output is written to standard error.


Constructor Summary
LogLog()
           
 
Method Summary
static void criticalError(Class clazz, String method, String logString, Object logObj)
          Logs a text string at CRITICAL_ERROR_LEVEL.
static void detail(Class clazz, String method, String logString, Object logObj)
          Logs a text string at DETAIL_LEVEL.
static void enable(boolean on)
          Enable/Disable technical framework logging.
static void error(Class clazz, String method, String logString, Object logObj)
          Logs a text string at ERROR_LEVEL.
static void info(Class clazz, String method, String logString, Object logObj)
          Logs a text string at INFO_LEVEL.
static boolean isEnabled()
          Returns true if the logging is enabled.
static void log(int level, Class clazz, String method, String logString, Object logObj)
          Log a message.
static void trace(Class clazz, String method, String logString, Object logObj)
          Logs a text string at TRACE_LEVEL.
static void warning(Class clazz, String method, String logString, Object logObj)
          Logs a text string at WARNING_LEVEL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogLog

public LogLog()
Method Detail

criticalError

public static void criticalError(Class clazz,
                                 String method,
                                 String logString,
                                 Object logObj)
Logs a text string at CRITICAL_ERROR_LEVEL.

Parameters:
clazz - a class
method - a method name
logString - a log string (summary)
logObj - a log object (detail, to be stringified)

error

public static void error(Class clazz,
                         String method,
                         String logString,
                         Object logObj)
Logs a text string at ERROR_LEVEL.

Parameters:
clazz - a class
method - a method name
logString - a log string (summary)
logObj - a log object (detail, to be stringified)

warning

public static void warning(Class clazz,
                           String method,
                           String logString,
                           Object logObj)
Logs a text string at WARNING_LEVEL.

Parameters:
clazz - a class
method - a method name
logString - a log string (summary)
logObj - a log object (detail, to be stringified)

info

public static void info(Class clazz,
                        String method,
                        String logString,
                        Object logObj)
Logs a text string at INFO_LEVEL.

Parameters:
clazz - a class
method - a method name
logString - a log string (summary)
logObj - a log object (detail, to be stringified)

detail

public static void detail(Class clazz,
                          String method,
                          String logString,
                          Object logObj)
Logs a text string at DETAIL_LEVEL.

Parameters:
clazz - a class
method - a method name
logString - a log string (summary)
logObj - a log object (detail, to be stringified)

trace

public static void trace(Class clazz,
                         String method,
                         String logString,
                         Object logObj)
Logs a text string at TRACE_LEVEL.

Parameters:
clazz - a class
method - a method name
logString - a log string (summary)
logObj - a log object (detail, to be stringified)

enable

public static void enable(boolean on)
Enable/Disable technical framework logging.

Parameters:
on - enable on true

isEnabled

public static boolean isEnabled()
Returns true if the logging is enabled.

Returns:
true if enabled

log

public static void log(int level,
                       Class clazz,
                       String method,
                       String logString,
                       Object logObj)
Log a message.

Parameters:
clazz - a class
method - a method name
logString - a log string (summary)
logObj - a log object (detail, to be stringified)


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