Package com.sun.identity.log
Class LogRecord
- java.lang.Object
-
- java.util.logging.LogRecord
-
- com.sun.identity.log.LogRecord
-
- All Implemented Interfaces:
com.sun.identity.log.ILogRecord
,Serializable
@Supported @Deprecated public class LogRecord extends LogRecord implements com.sun.identity.log.ILogRecord
Deprecated.Extension to the JDK1.4LogRecord
to include thelogInfo
HashMap
and methods to store and retrieve data from thislogInfo
Map. ThelogInfo
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. ForJDK1.4
LogRecord
please refer tohttp://java.sun.com/j2se/1.4.1/docs/api/java/util/logging/LogRecord.html
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addLogInfo(String key, Object value)
Deprecated.Adds to the log information map, the field key and its corresponding value.Map
getLogInfoMap()
Deprecated.Returns the log information map which contains the set of fields and their corresponding values.void
setLogInfoMap(Map logInfoMap)
Deprecated.Convenience method to set the log information map.-
Methods inherited from class java.util.logging.LogRecord
getInstant, getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setInstant, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
-
-
-
-
Constructor Detail
-
LogRecord
@Supported public LogRecord(Level level, String msg)
Deprecated.Construct theLogRecord
with the given Level and message values.- Parameters:
level
- The log Levelmsg
- The message string
-
LogRecord
@Supported public LogRecord(Level level, String msg, Object token)
Deprecated.Construct theLogRecord
with the given Level and message values.- Parameters:
level
- The log Level.msg
- The message string.token
- The single sign-on token which will be used to fill in details like client IP address into theLogRecord
.
-
-
Method Detail
-
addLogInfo
@Supported public void addLogInfo(String key, Object value)
Deprecated.Adds to the log information map, the field key and its corresponding value.- Parameters:
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.
-
setLogInfoMap
@Supported public void setLogInfoMap(Map logInfoMap)
Deprecated.Convenience method to set the log information map.- Parameters:
logInfoMap
- Handler to the map which contains the log info
-
getLogInfoMap
@Supported public Map getLogInfoMap()
Deprecated.Returns the log information map which contains the set of fields and their corresponding values.- Returns:
- The log information map.
-
-