com.metamatrix.common.log
Interface LogConfiguration

All Known Implementing Classes:
LogConfigurationImpl

public interface LogConfiguration


Field Summary
static java.lang.String ROOT_CONTEXT
           
 
Method Summary
 java.util.Set<java.lang.String> getContexts()
          Obtain the set of message contexts that are currently used.
 int getLogLevel(java.lang.String context)
          Get the current configured Log Level for supplied context
 boolean isEnabled(java.lang.String context, int msgLevel)
          Is the logging for the given context at the specified message level enabled.
 void setLogLevel(java.lang.String context, int logLevel)
          Set the Log Level Note: Must call setLogConfiguration(LogConfiguration) for log level to take affect on the server.
 

Field Detail

ROOT_CONTEXT

static final java.lang.String ROOT_CONTEXT
See Also:
Constant Field Values
Method Detail

getLogLevel

int getLogLevel(java.lang.String context)
Get the current configured Log Level for supplied context

Parameters:
context -
Returns:
int value
See Also:
MessageLevel

getContexts

java.util.Set<java.lang.String> getContexts()
Obtain the set of message contexts that are currently used.

Returns:
the unmodifiable set of context Strings; never null

setLogLevel

void setLogLevel(java.lang.String context,
                 int logLevel)
Set the Log Level Note: Must call setLogConfiguration(LogConfiguration) for log level to take affect on the server.

Parameters:
context - log context name
logLevel - The logLevel to set.

isEnabled

boolean isEnabled(java.lang.String context,
                  int msgLevel)
Is the logging for the given context at the specified message level enabled.

Parameters:
context -
msgLevel -
Returns:


Copyright © 2009. All Rights Reserved.