[ 
https://issues.apache.org/jira/browse/HDDS-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dinesh Chitlangia updated HDDS-391:
-----------------------------------
    Attachment: HDDS-391.001.patch
        Status: Patch Available  (was: In Progress)

Changes:
 # AuditMessage implemented with Builder pattern
 # AuditMessage now includes throwable as member
 # New Interface - Auditor : Must be implemented by class where we want to 
audit events
 # Auditor interface has 2 methods to build auditMessage and must be 
implemented by actor class.
 # Simplified AuditLogger to remove methods that will not be used
 # Success events will be logged as INFO and Failure events as ERROR
 # Since Audit is a controlled activity, removed the option to configure log 
level programmatically which could have been used to override default log level 
as described above. This has come from a feedback from Jitendra in our last 
discussion.
 # log4j2.properties and AuditMessage now use '|' as a delimiter
 # Updated tests to use Builder

 

cc: [~anu], [~ajayydv] for review

> Simplify Audit Framework to make audit logging easier to use
> ------------------------------------------------------------
>
>                 Key: HDDS-391
>                 URL: https://issues.apache.org/jira/browse/HDDS-391
>             Project: Hadoop Distributed Data Store
>          Issue Type: Improvement
>          Components: Ozone Manager
>            Reporter: Dinesh Chitlangia
>            Assignee: Dinesh Chitlangia
>            Priority: Major
>         Attachments: HDDS-391.001.patch
>
>
> In HDDS-376 a customer AuditMessage structure was created for use in Audit 
> Logging.
> This Jira proposes to incorporate [suggestive 
> improvements|https://issues.apache.org/jira/browse/HDDS-376?focusedCommentId=16594170&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16594170]
>  from [~ajayydv].
>  * AuditMessage should encapsulate log level, audit status, message and 
> exception.
>  * AuditMessage should use the | delimited instead of space. This will 
> specially be useful when AuditParser is completed as part of HDDS-393



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to