-
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.
Understanding Dual / Redundant Profiling Logs
X4 Server utilizes two distinct log categories to capture process step performance and execution metrics (step name, duration, status, action ID, etc.):
-
X4-Profiling: Outputs profiling information into the main application server log (e.g.server.log). -
X4-Profiling-Filesystem: Writes profiling events into a dedicated technical filesystem log (e.g.profiling.log).
By default, if both loggers are set to INFO, process step metrics are logged twice in different formats.
On high-throughput environments, this duplicate logging significantly increases overall log volume.
In such a case, standard logging might be disabled:
<logger category="X4-Profiling">
<level name="OFF"/>
</logger>