Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagexml
themeRDark
<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
languagexml
themeRDark
<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 :

...