[
https://issues.jboss.org/browse/WFLY-3164?page=com.atlassian.jira.plugin....
]
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