Log entry types
- Last Updated: January 17, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
Log entry types represent categories of information you can write to a log file. You can categorize the information into server and client contexts. The log entry types in the client context are applicable to DataServer clients, ABL clients, AppServer agents and WebSpeed agents. However, the log entry types in the server context are applicable only to DataServer brokers.
The degree of detail written to the log file is determined by the logging level. For more information on logging levels, see Logging levels.
The following table lists the DataServer log entry types in the client context.
| Log entry type | Description |
|---|---|
DS.QryInfo |
Logs messages about client processing for SQL
queries. By default, setting the DS.QryInfo log entry
type in the client context will automatically set the SQL log
entry type in the server context. |
DS.Cursor |
Logs client-side cursor details. By default,
setting the DS.Cursor log entry type in the client
context will automatically set the Cursor log entry
type in the server context. |
4GLTrans |
Logs client-side transaction details. Level
4 of the entry type writes client context information to the log
file specific to DataServers. Output from the 4GLTrans log
entry type can supplement output of the TRANS log entry
type in the server context. |
DB.Connects
|
Logs client-side connection details. Level
3 of this log entry type logs the |
DS.Performance
|
Logs client-side performance details. By
default, setting the Level 3 of Level 2 is an aggregate of the performance summary for the calls made at DataServer client interface layer. Note: The
time measurement of performance parameters reported in the dataserv.lg is
in microseconds (denoted by us).
|
DS.Interface |
Logs client-side interface details. By default, setting the
Level 3 of Level 2 is an aggregate of the interface summary for the calls made at DataServer client interface layer. |
For details about log entry types of the DataServer client context and other log entry types specific to the client context, refer to OpenEdge Development: Debugging and Troubleshooting.
The following table lists the DataServer log entry types in the server context.
| Log entry type | Description |
|---|---|
SQL |
Logs information about SQL queries. Similar
to the legacy qt_debug,SQL option.
|
Cursor |
Logs information about cursor details. Similar
to the legacy qt_debug,Cursor option.
|
Trans |
Logs information about the transaction details.
|
Connects |
Logs details of connection attributes and related
information. Mapped to the connection information formerly output
with legacy qt_debug,SQL and qt_debug,Cursor.
|
Performance |
Logs details of query performance.
Note: The time measurement of performance parameters reported in the
dataserv.lg is in microseconds (denoted by
us). |
Interface |
Logs function call details.
|
The following table identifies the logging levels and entry types for client and server contexts.
| Operation Mode | Logging Option | OE Client | MSS DataServer Server |
|---|---|---|---|
| Startup / connection | Logging level |
-logginglevel,
parameter
|
-Dsrv logginglevel,
parameter
|
| Log entry types |
-logentrytypes,
parameter
|
-Dsrv logentrytypes,
parameter
|
|
| ubroker.properties1,2 |
-logginglevel,
parameter
-logentrytypes,
parameter
|
-Dsrv logginglevel
-Dsrv logentrytype
|
|
| Runtime setting | Logging level |
LOG-MANAGER: LOGGING-LEVEL
attribute
|
DSLOG-MANAGER: LOGGING-LEVEL
attribute
|
| Logging level |
LOG-MANAGER: LOG-ENTRY-TYPES
attribute
|
DSLOG-MANAGER: LOG-ENTRY-TYPES
attribute
|
The following code examples shows how logging levels and log entry types are set using the client startup switch:
|
|
In the following example, logging levels and the log entry type
are set using the LOG-MANAGER system handle:
|
In the next example, the logging level and log entry types are
defined using the -Dsrv switch.
|
|
The following example demonstrates the use of a DSLOG-MANAGER system
handle with a DataServer DB-CONTEXT attribute.
|
logginglevel and logentrytypes specified in the
ubroker properties file are for AppServer agents in the client
context only.logginglevel and logentrytypes at startup for
the DataServer's server context, continue to use the -Dsrv
Startup/connection options. logginglevel and
logentrytypes specified in the ubroker properties
file for a DataServer broker instance are ignored. Specifying the -Dsrv
options within the srvrStartupParam of a DataServer broker instance is also ignored.