Package com.sun.identity.entitlement.log
Class ELogRecord
- java.lang.Object
-
- java.util.logging.LogRecord
-
- com.sun.identity.entitlement.log.ELogRecord
-
- All Implemented Interfaces:
ILogRecord,Serializable
public class ELogRecord extends LogRecord implements ILogRecord
This class encapsulates the items in a log record.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ELogRecord(Level level, String message, Subject logBy, Subject logFor)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLogInfo(String key, Object value)Adds to the log information map, the field key and its corresponding value.ObjectgetLogBy()Returns log by subject.ObjectgetLogFor()Returns log for subject.Map<String,Object>getLogInfoMap()Returns 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
-
-
-
-
Method Detail
-
getLogInfoMap
public Map<String,Object> getLogInfoMap()
Returns log information map.- Specified by:
getLogInfoMapin interfaceILogRecord- Returns:
- log information map.
-
addLogInfo
public void addLogInfo(String key, Object value)
Adds to the log information map, the field key and its corresponding value.- Specified by:
addLogInfoin interfaceILogRecord- 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.
-
getLogBy
public Object getLogBy()
Returns log by subject.- Specified by:
getLogByin interfaceILogRecord- Returns:
- log by subject.
-
getLogFor
public Object getLogFor()
Returns log for subject.- Specified by:
getLogForin interfaceILogRecord- Returns:
- log for subject.
-
-