Details
-
New Feature
-
Resolution: Unresolved
-
Major
-
None
-
2.4.0
-
None
Description
It would be desirable to have a logger that would output the entries to grouper_audit_entry in varying levels of normalization.
CRITICAL, ERROR, WARN, and TRACE levels, I'll leave open for others to comment on.
INFO - provide a natural language entry the similar to what is in the Audit log display in the UI. Intended for presentation to casual or non-grouper users with little-to-no modification.
INFO = $createdOn(YYYY-MM-DD HH:MM:SS,mmm) - $LOGLEVEL - $description - auditCategory;$auditCategory,action:$actionName,group:$groupName,groupId:$groupId,engine:$grouperEngine,name:$subject.Name,id:$subject,userIpAddress:$userIpAddress
|
where description: $actor $actionNameVerbPastTense $subject.Name $actionPreposition $groupName
DEBUG - timestamped dump of values.
DEBUG = $createdOn(YYYY-MM-DD HH:MM:SS,mmm) - $LOGLEVEL - createdOn:$createdOn,auditCategory:$auditCategory,actionName:$actionName,fieldId:$fieldId,fieldName:$fieldName,memberId:$memberId,membershipType:$membershipType,groupId:$groupId,groupName:$groupName,contextId:$contextId,grouperEngine:$grouperEngine,description:$description,subject:$subject,field:$field,auditTypeId:$auditTypeId,userIpAddress:$userIpAddress,serverHost:$serverHost,auditEntryLastUpdated:$auditEntryLastUpdated,auditEntryId:$auditEntryId,userIpAddress:$userIpAddress,serverHost:$serverHost,auditEntryLastUpdated:$auditEntryLastUpdated,auditEntryId:$auditEntryId,grouperVersion:$grouperVersion,envName:$envName
|
Admins should be able to config the log to output text, JSON, or XML via log4j. Targets can be file or pipe.