CustomizableLayout example

28 views
Skip to first unread message

andy....@rantandrave.com

unread,
Feb 19, 2018, 11:17:00 AM2/19/18
to Audit4j
Hi

I've tried lots of things and read the docs before posting here, however I'm struggling to inject a new template into a CustomizableLayout and i was wondering if you had an example I could use please? I must be doing something daft but an example would really help me. Here is what I'm currently trying, without any joy:

layout: !org.audit4j.core.layout.CustomizableLayout
template: ${eventDate}|${uuid}|${actor}|${action}|${origin} => ${foreach fields field}[${field.name}:${field.value}]${end}

It appears that 'template' could not be found on the org.audit4j.core.layout.CustomizableLayout class even though I can clearly see it is there...

If it helps the version of Audit4j I'm using is:

<dependency>
<groupId>org.audit4j</groupId>
<artifactId>audit4j-core</artifactId>
<version>2.5.0</version>
</dependency>

Any help much appreciated

Cheers
-Andy

Franck Benault

unread,
Feb 21, 2018, 6:08:19 PM2/21/18
to Audit4j
Hello,

Sorry, this is not possible with the version 2.5.0 to configure a CustomizableLayout in a yaml file.

The getter for template is missing in the CustomizableLayout class

I have created the pull request
https://github.com/audit4j/audit4j-core/pull/70

Regards Franck
Reply all
Reply to author
Forward
0 new messages