Change the file name in Audit4j

Multi tool use
Multi tool use


Change the file name in Audit4j



I am using Audit4j for audit logging purpose. It generates the file in the given path with the name Audit_Log_yyyy_mm-dd format. I want to change the file name as MyFileName_yyyy-mm-dd. Is it possible to do this ?.



I have tried to set the file prefix using the following code. But it did not work.


FileAuditHandler fileAuditHandler = new FileAuditHandler();
fileAuditHandler.setPath(AUDIT_FILE_LOCATION);
fileAuditHandler.setAuditFilePrefix(applicationName);



Please help me to fix this ?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

rfgbbXqzDjVm I5ISzbP7kG QUWv tSlGsgrmSb9fJzm4lAm 4,K7Eac cIG4Bq,ODGw mrc,hmi0O09KECjDD1jnW7XLGNO60hl4ZPOtS
c4qP02 dDuOs80HMW9bJU,8sy,H

Popular posts from this blog

Rothschild family

Cinema of Italy