Table of contents


Official Content

GeneXus Server has tracing support via log4net.

The configuration file is called gxtracer.config, and is located in the GeneXus Server Vdir directory: C:\<GeneXusServer_installation_dir>\VDir

The file has a default configuration.

<log4net threshold="ALL">
  <appender name="GeneXusServer" type="log4net.Appender.RollingFileAppender">
  <file value="..\GXServer.log"/>
  <appendToFile value="true"/>
  <maximumFileSize value="9000KB"/>
  <maxSizeRollBackups value="4"/>
  <encoding value="unicodeFFFE" />
  <rollingStyle value="Size" />
  <layout type="log4net.Layout.PatternLayout">
    <conversionPattern value="%date{yyyy-MM-dd HH:mm:ss,fff} [%t] %-5p %c{1} - %m%n"/>
  </layout>
</appender>
<root>
  <level value="ALL" />
  <appender-ref ref="GeneXusServer" />
</root>
</log4net>

To enable tracing, set the level value (from the 'root' tag) to 'ALL'.

The following levels are defined in order of increasing priority:

  • ALL
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL
  • OFF

Enabling tracing will create a file called GXServer.log (located in the GeneXus Server root directory: C:\<GeneXusServer_installation_dir>) which contains all the GeneXus Server instance tracing information.

Note: asp.net trace via the AspNetTraceAppender is not supported by GeneXus Server.

See Also

For more information about log4net and different configuration examples, please refer to http://logging.apache.org/log4net/release/config-examples.html.

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant