|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogConfiguration
The LogConfiguration describes the current configuration of the system logger.
The log configuration is used to filter on log contexts (components) and log levels (severity).
Field Summary | |
---|---|
static java.lang.String |
CONTEXT_DELIMETER
This String should separate each of the contexts in the String value for the property LOG_CONTEXT_PROPERTY_NAME . |
static int |
CRITICAL
Message level value that specifies that critical messages are to be recorded. |
static java.lang.String |
CTX_ALL
A flag that specifies ALL logging contexts. |
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 java.lang.String |
LOG_CONTEXT_PROPERTY_NAME
The name of the System property that contains the set of comma-separated context names for messages not to be recorded. |
static java.lang.String |
LOG_LEVEL_PROPERTY_NAME
The name of the System property that contains the message level for the LogManager. |
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. |
Fields inherited from interface com.metamatrix.admin.api.objects.AdminObject |
---|
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD |
Method Summary | |
---|---|
java.util.Set |
getDiscardedContexts()
Obtain the set of contexts for messages that are to be discarded. |
java.util.Set |
getIncludedContexts()
Obtain the set of message contexts that are currently used. |
int |
getLogLevel()
Get the current configured Log Level TODO: An int log level is of little use to clients. |
void |
setDiscardedContexts(java.util.Set contexts)
Direct the log configuration to discard the given contexts and not record them. |
void |
setIncludedContexts(java.util.Set contexts)
Direct the log configuration to record only these contexts. |
void |
setLogLevel(int logLevel)
Set the Log Level Note: Must call setLogConfiguration(LogConfiguration) for log level to take affect on the server. |
Methods inherited from interface com.metamatrix.admin.api.objects.AdminObject |
---|
getIdentifier, getName, getProperties, getPropertyValue |
Field Detail |
---|
static final int NONE
static final int CRITICAL
static final int ERROR
static final int WARNING
static final int INFO
static final int DETAIL
static final int TRACE
static final java.lang.String CTX_ALL
static final java.lang.String LOG_LEVEL_PROPERTY_NAME
static final java.lang.String LOG_CONTEXT_PROPERTY_NAME
The name of the System property that contains the set of comma-separated context names for messages not to be recorded. A message context is simply some string that identifies something about the component that generates the message. The value for the contexts is application specific.
This is an optional property that defaults to no contexts (i.e., messages with any context are recorded).
static final java.lang.String CONTEXT_DELIMETER
LOG_CONTEXT_PROPERTY_NAME
. For example,
if this delimiter were a comma, the value for the property might
be something like "CONFIG,QUERY,CONFIGURATION_ADAPTER".
Method Detail |
---|
int getLogLevel()
MessageLevel
java.util.Set getIncludedContexts()
java.util.Set getDiscardedContexts()
void setLogLevel(int logLevel)
logLevel
- The logLevel to set.void setDiscardedContexts(java.util.Set contexts)
contexts
- the Set of contexts that should be discarded.void setIncludedContexts(java.util.Set contexts)
contexts
- the Set of contexts that should be included.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |