Navigate to the "[JogetFolder]\apache-tomcat-8.5.72\webapps\jw\WEB-INF\classes\log4j2.xml" configuration file and check out the use of EMAIL rolling files to see how EmailTool, UserNotificationAuditTrail, and ExportFormEmailTool are writing into email.log file.
Code Block |
---|
title | log4j2.xml |
---|
linenumbers | true |
---|
| <RollingFile
name="EMAIL"
fileName="${LOGDIR}/email.log"
filePattern="${LOGDIR}/email.log.%d{yyyyMMdd}.gz"
ignoreExceptions="false">
<PatternLayout>
<Pattern>%-5p %d{dd MMM yyyy HH:mm:ss} %-50c - %m%throwable{0}%n</Pattern>
</PatternLayout>
<Policies>
<OnStartupTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10MB" />
<TimeBasedTriggeringPolicy interval="1"/>
</Policies>
<DefaultRolloverStrategy max="5" />
</RollingFile>
<!-- Email log file -->
<Logger name="org.joget.apps.app.lib.EmailTool" level="debug" additivity="true">
<AppenderRef ref="EMAIL"/>
</Logger>
<Logger name="org.joget.apps.app.lib.UserNotificationAuditTrail" level="debug" additivity="true">
<AppenderRef ref="EMAIL"/>
</Logger>
<Logger name="org.joget.plugin.enterprise.ExportFormEmailTool" level="debug" additivity="true">
<AppenderRef ref="EMAIL"/>
</Logger> |
|