Reloading Log Configuration
You can configure CADP for Java to reload the log4j2.xml file periodically. This enables you to alter the configuration file when needed.
To enable reloading:
Set the scan attribute of the configuration element to true.
<configuration scan="true">
The default reload period is 1 minute. You can alter this by setting the scanPeriod
attribute, as shown in the following line.
<configuration scan="true" scanPeriod="30 seconds">
Time values can be specified in milliseconds, seconds, minutes, or hours. When no time unit is specified, milliseconds is used.