|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.logging.LogRecord | +--com.sun.identity.log.LogRecord
Extension to the JDK1.4 LogRecord
to include the
logInfo
HashMap
and methods to store and retrieve
data from this logInfo
Map. The logInfo
Map is
supposed to be used by the client to fill in log-details which
will be used by the Formatter to construct the actual log string.
For JDK1.4
LogRecord
please refer to
http://java.sun.com/j2se/1.4.1/docs/api/java/util/logging/LogRecord.html
Constructor Summary | |
LogRecord(java.util.logging.Level level,
java.lang.String msg)
Construct the LogRecord with the given Level and message
values. |
|
LogRecord(java.util.logging.Level level,
java.lang.String msg,
java.lang.Object token)
Construct the LogRecord with the given Level and message
values. |
Method Summary | |
void |
addLogInfo(java.lang.String key,
java.lang.Object value)
Adds to the log information map, the field key and its corresponding value. |
java.util.Map |
getLogInfoMap()
Returns the log information map which contains the set of fields and their corresponding values. |
void |
setLogInfoMap(java.util.Map logInfoMap)
Convenience method to set the log information map. |
Methods inherited from class java.util.logging.LogRecord |
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogRecord(java.util.logging.Level level, java.lang.String msg)
LogRecord
with the given Level and message
values.level
- The log Levelmsg
- The message stringpublic LogRecord(java.util.logging.Level level, java.lang.String msg, java.lang.Object token)
LogRecord
with the given Level and message
values.level
- The log Levelmsg
- The message stringtoken
- The single sign on token which will be used to fill in
details like client IP address into the LogRecord
.Method Detail |
public void addLogInfo(java.lang.String key, java.lang.Object value)
key
- The key which will be used by the formatter to determine if
this piece of info is supposed to be added to the log string
according to the selected log fields.value
- The value which may form a part of the actual log-string.public void setLogInfoMap(java.util.Map logInfoMap)
logInfoMap
- Handler to the map which contains the log infopublic java.util.Map getLogInfoMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |