Package com.skava.log
Class AuditLogger
java.lang.Object
com.skava.log.AuditLogger
- All Implemented Interfaces:
Serializable
Audit Logger Definition
- Author:
- Infosys Equinox
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.audit4j.core.dto.Field>getAuditFields(AuditLog log) Fetches the audit fields fromAuditLogstatic List<org.audit4j.core.dto.Field>getAuditFields(Map<String, String> auditFields) Fetches the audit fields fromMapstatic voidCaptures the audit log for theAuditLoginstancestatic voidlog(String businessId, String storeId, String collectionId, String action, String traceId, String userId, String message) Captures the audit logstatic voidlog(org.apache.camel.Exchange exchange) Captures the audit log for theExchangeinstancestatic StringMasks the given value with '*' from left with the given size
-
Field Details
-
FIELD_USER_INFO
- See Also:
-
FIELD_LOCALE
- See Also:
-
FIELD_TRACE_ID
- See Also:
-
FIELD_STORE_ID
- See Also:
-
FIELD_BUSINESS_ID
- See Also:
-
FIELD_COLLECTION_ID
- See Also:
-
FIELD_MESSAGE
- See Also:
-
FIELD_SERVICE
- See Also:
-
FIELD_CODE
- See Also:
-
FIELD_BODY
- See Also:
-
-
Method Details
-
log
public static void log(org.apache.camel.Exchange exchange) Captures the audit log for theExchangeinstance- Parameters:
exchange- Holds the exchange
-
log
public static void log(String businessId, String storeId, String collectionId, String action, String traceId, String userId, String message) Captures the audit log- Parameters:
businessId- Holds the businessIdstoreId- Holds the storeIdcollectionId- Holds the collectionIdaction- Holds the actiontraceId- Holds the traceIduserId- Holds the userIdmessage- Holds the message
-
log
Captures the audit log for theAuditLoginstance- Parameters:
log- Holds theAuditLoginstance
-
getAuditFields
Fetches the audit fields fromAuditLog- Parameters:
log- Holds theAuditLog- Returns:
- Collection of
Field
-
getAuditFields
Fetches the audit fields fromMap- Parameters:
auditFields- Holds the map of fields with key and value- Returns:
- Collection of
Field
-
mask
Masks the given value with '*' from left with the given size- Parameters:
value- Holds the value to be maskedsize- Holds the size (no of chars from left to mask)- Returns:
- masked value
-