com.metamatrix.admin.api.embedded
Interface EmbeddedLogger


public interface EmbeddedLogger

Custom logging interface that provides a hook for custom implementations to log messages produced by MM Query.

Since:
4.3

Field Summary
static int CRITICAL
          Message level value that specifies that critical messages are to be recorded.
static int DETAIL
          Message level value that specifies that detailed, information, warning, error and critical messages are to be recorded.
static int ERROR
          Message level value that specifies that error messages and critical messages are to be recorded.
static int INFO
          Message level value that specifies that information, warning, error and critical messages are to be recorded.
static int NONE
          Message level value that specifies that no messages are to be recorded.
static int TRACE
          Message level value that specifies that all messages are to be recorded.
static int WARNING
          Message level value that specifies that warning, error and critical messages are to be recorded.
 
Method Summary
 void log(int logLevel, long timestamp, java.lang.String componentName, java.lang.String threadName, java.lang.String message, java.lang.Throwable throwable)
          Logs the given message if the current logging level is >= the logLevel parameter.
 

Field Detail

NONE

static final int NONE
Message level value that specifies that no messages are to be recorded.

See Also:
Constant Field Values

CRITICAL

static final int CRITICAL
Message level value that specifies that critical messages are to be recorded.

See Also:
Constant Field Values

ERROR

static final int ERROR
Message level value that specifies that error messages and critical messages are to be recorded.

See Also:
Constant Field Values

WARNING

static final int WARNING
Message level value that specifies that warning, error and critical messages are to be recorded.

See Also:
Constant Field Values

INFO

static final int INFO
Message level value that specifies that information, warning, error and critical messages are to be recorded.

See Also:
Constant Field Values

DETAIL

static final int DETAIL
Message level value that specifies that detailed, information, warning, error and critical messages are to be recorded.

See Also:
Constant Field Values

TRACE

static final int TRACE
Message level value that specifies that all messages are to be recorded.

See Also:
Constant Field Values
Method Detail

log

void log(int logLevel,
         long timestamp,
         java.lang.String componentName,
         java.lang.String threadName,
         java.lang.String message,
         java.lang.Throwable throwable)
Logs the given message if the current logging level is >= the logLevel parameter.

Parameters:
logLevel - logging level for this message
timestamp - timestamp at which this log message was generated
componentName - name of the component that generated this message
threadName - name of the thread that generated this message
message - message body. May be null.
throwable - exception thrown. May be null.
Since:
4.3


Copyright © 2009. All Rights Reserved.