audit4j / audit4j-core

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

It is not possible to change the prefix of the Audit file (FileAuditHandler auditFilePrefix not taken in account) #80

Open franck-benault opened 6 years ago

franck-benault commented 6 years ago

Hello,

bug found in Audit4j-core version 2,5,0

It is not possible to change the prefix of the audit file : this file always starts with the default prefix (Audit_log) the property auditFilePrefix is not taken in account in FileAuditHandler, because in the class FileHandlerUtil the method generateAuditFileName() has a hardcoded prefix name.

see also the request in stackoverflow.com https://stackoverflow.com/questions/51129472/change-the-file-name-in-audit4j

Regards Franck