use of com.sun.identity.entitlement.log.ELogRecord in project OpenAM by OpenRock.
the class OpenSSOLogger method getERecord.
private static ELogRecord getERecord(LogRecord rec) {
SSOToken adminSSOToken = (SSOToken) AccessController.doPrivileged(AdminTokenAction.getInstance());
ELogRecord eLogRec = new ELogRecord(rec.getLevel(), rec.getMessage(), SubjectUtils.createSubject(adminSSOToken), SubjectUtils.createSubject((SSOToken) rec.getLogFor()));
Map map = rec.getLogInfoMap();
for (Object k : map.keySet()) {
eLogRec.addLogInfo((String) k, map.get(k));
}
return eLogRec;
}
Aggregations