audit4j / audit4j-core

An open source auditing framework.
http://audit4j.org
Apache License 2.0
125 stars 77 forks source link

How to extends the Customizable Layout (example add ${roles}) #61

Open franck-benault opened 6 years ago

franck-benault commented 6 years ago

Hello,

At present time (version 2,5,0) I think there is no way to add in the log more information about the user than the user name (Actor defined in MetaData)

I would like to add the "roles" coming from the authorization system.

For example, in the framework shiro you can give to a user several roles

Do you think it is a good idea ? What must be changed to make this extension possible ?

I think this issue 45 is close to what I am describing https://github.com/audit4j/audit4j-core/issues/45

Regards Franck

janithb commented 6 years ago

How about adding actor as a separate entity, as per below representation.

Actor { String identifier; String name; String role; }