Sometimes errors occur in your applications and debugging them is necessary. For instance, when you are developing .NET Framework applications hosted on GeneXus' Servers (i.e. using Cloud prototyping) the Log level property is very useful, and you can have all the information you need to solve all these issues.
The following properties need to be set on the .NET Framework Generator:
Once enabled, a new property in the web.config will be available under system.web:
<trace enabled="true" localOnly="false" />
If the localOnly value is set to false, the log can be accessed by the following URL:
http://apps3.genexusx.com/<VirtualDirectory>/trace.axd
The log is similar to the one shown below:
Note:
In cloud environments, the generation of log files may vary depending on the service used. Often, the use of archives is avoided due to the complexity of maintenance in environments with multiple balanced servers. In addition, the management of multiple microservices may require centralised visualisation of logs.
There are several tools and services available for this task, beyond trace.axd. For example, GeneXus, which has advanced Observability, allows logs to be generated and sent to cloud services such as Azure Application Insights. With Opentelemetry, it is also possible to direct application logs to any compatible backend for centralised viewing.
It is relevant to note that this functionality is exclusively available for .NET, and not for .NET Framework, due to the progressive discontinuation of the latter in terms of support and compatibility with emerging technologies such as Opentelemetry.