...
To enable audit logging edit the UI service log4j configuration file : /app/ui/MonTier-UI/lib/log4j2.xml
Change the "AUDIT" appender as describe below :
Code Block | ||||
---|---|---|---|---|
| ||||
<RollingFile name="AUDIT" fileName="${tomee-log-path}/audit.log" filePattern="${tomee-log-path}/audit.%i.log" append="true" bufferedIO="false" bufferSize="0">
<PatternLayout>
<Pattern>%d{dd/MM/yyyy HH:mm:ss,SSS}- %p %c{1.} [%t] %m %ex%n</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="5 MB" />
</Policies>
<DefaultRolloverStrategy max="10"/>
</RollingFile> |
Change the "org.montier.ui.web.filters.AuditFilter" logger to level="debug" as describe below :
Code Block | ||||
---|---|---|---|---|
| ||||
<Logger name="org.montier.ui.web.filterfilters.AuditFilter" level="debug" additivity="false"> <AppenderRef ref="AUDIT_FILE"/> </Logger> |
Make sure to restart the UI service after altering the log4j configuration file.
The output log file will be created in the UI service log directory : /logs/ui with the name catalinaaudit.log
Audit records example :
...