Log level property

Official Content
This documentation is valid for:
This property is used to configure how much detail has to be added to the log at runtime.


6. All The ALL Level has the lowest possible rank and is intended to turn on all logging.
5. Debug The DEBUG Level designates fine-grained informational events that are most useful to debug an application.
2. Error The ERROR level designates error events that might still allow the application to continue running.
1. Fatal The FATAL level designates very severe error events that will presumably lead the application to abort.
4. Info The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.
0. Off The OFF Level has the highest possible rank and is intended to turn off logging. This is the default value.
3. Warn The WARN level designates potentially harmful situations.


In .NET, this property modifies the values of the <log4net threshold=...> tag of the Log.config and Log.Console.Config files. Additionally, it sets the <trace enabled=... /> tag of the Web.Config file. This config files can be found in the web applications folder.

Tip: Log.config file is referenced by web.config (<log4net configSource="log.config"/>) and it's used when running web app. Log.Console.config file is referenced by Client.exe.config and it's used for command line executions. Further information check Log4net configuration in GeneXus .Net application

In Java, this property modifies the values of the <loggers=...> tag of the log4j.xml file. The log4j2.xml file can be found in the <webapp>\WEB-INF\classes folder.

Advanced configuration

To modify or extend log parameters, you can change values on the following templates.

  • rollingfile.console.config which goes to the log.console.config file used in command line programs.
  • rollingfile.web.config which goes to the log.config file used in the web application.

Files are located in "GeneXusInstallFolder"\Log\Java\RollingFile and "GeneXusInstallFolder"\Log\Dotnet\RollingFile

If you want to generate a log file for every day, change the template as follows:

 <appender  name="RollingFile" type="log4net.Appender.RollingFileAppender">
      <file  value="./"/>
      <appendToFile  value="true"/>
      <maximumFileSize  value="9000KB"/>
      <maxSizeRollBackups  value="0"/>
      <rollingStyle  value="Date"/>
      <staticLogFileName value="false" />
      <datePattern value="dd.MM.yyyy'.log'" />
      <layout  type="log4net.Layout.PatternLayout">
         <conversionPattern value="%d [%t] %-5p %c - %m%n" />
      <lockingModel  type="log4net.Appender.FileAppender+MinimalLock"/>



This property applies only at design-time.


Objects: Procedure, Panel for Smart Devices, Web Component, Web Panel
Platforms: Web(.Net, Java), Web(.Net Core)

See Also

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.