[jboss-jira] [JBoss JIRA] (WFLY-3164) Create customized Audit Logger

Brian Stansberry (JIRA) issues at jboss.org
Wed Mar 26 08:59:14 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12956535#comment-12956535 ] 

Brian Stansberry commented on WFLY-3164:
----------------------------------------

Can I assign this to you? I think you have a better grasp of the topic. :)

This sounds like a good approach. I expect we are going to have to create static variant of this that does some basic mappings of a few fields to traditional log record elements, but as you say having the SPI etc needed for this custom formatter approach will make doing that static one simpler; it will just be a less configurable thing that calls into the same logic.
                
> Create customized Audit Logger
> ------------------------------
>
>                 Key: WFLY-3164
>                 URL: https://issues.jboss.org/browse/WFLY-3164
>             Project: WildFly
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Domain Management
>            Reporter: Kabir Khan
>            Assignee: Brian Stansberry
>              Labels: EAP
>             Fix For: 9.0.0.CR1
>
>
> Some users want to have a single line audit log formatter. I think it would be better to have the ability to add your own formatter from a module, something along the lines of:
> {code}
> <custom-formatter code="org.blah.MyCustomFormatter" module="org.blah/mymodule">
>    <property name="layout">...</property>
>    <property name="propB">...</property>
> </custom-formatter>
> {code}
> We'd need an SPI, and a slight reworking of the audit log internals. In any case doing this will put us in a better position to provide the single line logger if this proposal is not acceptable to our users.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list