com.sun.identity.log
クラス LogRecord

java.lang.Object
  上位を拡張 java.util.logging.LogRecord
      上位を拡張 com.sun.identity.log.LogRecord

public class LogRecord
extends 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
 

関連項目:
直列化された形式

コンストラクタの概要
LogRecord(Level level, String msg)
          Construct the LogRecord with the given Level and message values.
LogRecord(Level level, String msg, Object token)
          Construct the LogRecord with the given Level and message values.
 
メソッドの概要
 void addLogInfo(String key, Object value)
          Adds to the log information map, the field key and its corresponding value.
 Map getLogInfoMap()
          Returns the log information map which contains the set of fields and their corresponding values.
 void setLogInfoMap(Map logInfoMap)
          Convenience method to set the log information map.
 

コンストラクタの詳細

LogRecord

public LogRecord(Level level,
                 String msg)
Construct the LogRecord with the given Level and message values.

パラメータ:
level - The log Level
msg - The message string

LogRecord

public LogRecord(Level level,
                 String msg,
                 Object token)
Construct the LogRecord with the given Level and message values.

パラメータ:
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 the LogRecord.
メソッドの詳細

addLogInfo

public void addLogInfo(String key,
                       Object value)
Adds to the log information map, the field key and its corresponding 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.

setLogInfoMap

public void setLogInfoMap(Map logInfoMap)
Convenience method to set the log information map.

パラメータ:
logInfoMap - Handler to the map which contains the log info

getLogInfoMap

public Map getLogInfoMap()
Returns the log information map which contains the set of fields and their corresponding values.

戻り値:
The log information map.