Try OpenEdge Now
skip to main content
Debugging and Troubleshooting
Troubleshooting Resources : Log Entry Types Detail : Query information logging : Starting query information logging
 
Starting query information logging
To create query information log entries, use the Log Entry Types (-logentrytypes) startup parameter or, for the AppServer and WebSpeed, the srvrLogEntryTypes property in the ubroker.properties file. Specify the QryInfo log entry type alone or in a comma-separated list that includes other log entry types. For example:

-logentrytypes QryInfo

-logentrytypes QryInfo,ProEvents.UI.Command
You can also turn on this logging at run time, using the LOG-MANAGER system handle. For example, you can include the following line in the ABL code:

LOG-MANAGER:LOG-ENTRY-TYPES = "QryInfo:3"
You can turn off this logging in the ABL application by resetting the attribute. For example:

LOG-MANAGER:LOG-ENTRY-TYPES = ?
Whichever way you start query information logging, you must do so before the query starts, or else no logging will occur for this query. If you turn off query information logging before the query completes, no logging will occur for this query.
* Starting query information logging on individual queries
* Writing query statistics on-demand