| Configures how much detail has to be added to the log at runtime.
|0. Off ||The OFF Level has the highest possible rank and is intended to turn off logging. This is the default value.|
|1. Fatal ||The FATAL Level designates very severe error events that will presumably lead the application to abort.|
|2. Error ||The ERROR Level designates error events that might still allow the application to continue running.|
|3. Warn ||The WARN Level designates potentially harmful situations.|
|4. Info ||The INFO Level designates informational messages that highlight the progress of the application at coarse-grained level.|
|5. Debug ||The DEBUG Level designates fine-grained informational events that are most useful to debug an application.|
|6. All ||The ALL Level has the lowest possible rank and is intended to turn on all logging.|
Objects: Procedure, Panel for Smart Devices, Web Component, Web Panel
Platforms: Web(.Net, Java), Web(.Net Core)
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 is used when running the web app. Log.Console.config file is referenced by Client.exe.config and is used for command line executions. For 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.
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
To generate a log file for every day, change the template as follows:
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
<staticLogFileName value="false" />
<datePattern value="dd.MM.yyyy'.log'" />
<conversionPattern value="%d [%t] %-5p %c - %m%n" />
This property applies only at design-time.
To apply changes made by this property, Build any object.