Kbase P130327: How to enable tracing for a .NET application using the .NET Open Client
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/22/2009 |
|
Status: Verified
GOAL:
How to enable tracing for a .NET application using the .NET Open Client
GOAL:
How to get a client log file from a .NET Open Client without changing the .NET code
FACT(s) (Environment):
OpenEdge 10.x
Windows
FIX:
In order to enable tracing on the .NET client side, add the following lines in the .NET application before any connection to the AppServer is made:
Progress.Open4GL.RunTimeProperties.LogfileName = "log.txt";
Progress.Open4GL.RunTimeProperties.LoggingLevel = 7;
Progress.Open4GL.RunTimeProperties.LogEntryTypes = "DynamicApi,Broker";
Progress.Open4GL.RunTimeProperties.EnableTracing = true;
The tracing can also be enabled in the .NET application without making any code changes by either creating the <ApplicationName>.exe.config file shown below if none exists or by adding the entries to an existing file.
ApplicationName.exe.config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="PROGRESS.Session.LoggingLevel" value="7" />
<add key="PROGRESS.Session.LogEntryTypes " value="DynamicApi,Broker" />
<add key="PROGRESS.Session.LogFileName" value="log.txt" />
<add key="PROGRESS.Session.EnableTracing" value="1" />
</appSettings>
</configuration>
The log.txt file is created in the same directory where the .NET application's executable file is located.