Activating .log file
- The
.logfile is read in at server startup. - The file name of the
.logfile must not be changed.
To enable the .log file, the following changes are required in <WildFly>\standalone\configuration\standalone.xml.
In the
<subsystem xmlns="urn:jboss:domain:logging:8.0">element, add the following section:XML<custom-handler name="PROFILING" class="org.jboss.logmanager.handlers.PeriodicSizeRotatingFileHandler" module="org.jboss.logmanager"> <formatter> <named-formatter name="PROFILING-PATTERN"/> </formatter> <properties> <property name="autoFlush" value="true" /> <property name="append" value="true" /> <property name="rotateSize" value="20000000" /> <property name="maxBackupIndex" value="1" /> <property name="suffix" value=".yyyy-MM-dd" /> <property name="fileName" value="${jboss.server.log.dir}/profiling.log" /> </properties> </custom-handler>In the
<logger category="X4-Profiling-Filesystem" use-parent-handlers="false">element, add the following section:XML<handlers> <handler name="PROFILING"/> </handlers>- Save standalone.xml.
- Restart X4 Server.