X4 Help Center
7.5 7.4 German English
Auto Light Dark
Auto Light Dark
7.5 7.4 German English

Activating .log file

  • The .log file is read in at server startup.

  • The file name of the .log file must not be changed.

To enable the .log file, the following changes are required in <WildFly>\standalone\configuration\standalone.xml.

  1. 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>
    
  2. In the <logger category="X4-Profiling-Filesystem" use-parent-handlers="false"> element, add the following section:

    XML
    <handlers>
      <handler name="PROFILING"/>
    </handlers>
    
  3. Save standalone.xml.

  4. 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.):

  1. X4-Profiling: Outputs profiling information into the main application server log (e.g. server.log).

  2. 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>