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 |
|---|---|
|
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. |
|
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. |
|
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. |
|
Logs client-side connection details. Level
3 of this log entry type logs the |
|
Logs client-side performance details. Levels 2,3, and 4 of the performance entry type generate log outputs at the session level, connection level, and individual round trip levels respectively. |
For more information on log entry types of the DataServer client context and other log entry types specific to the client context, see Troubleshoot ABL Applications.
The following table lists the DataServer log entry types in the server context.
| Log entry type | Description |
|---|---|
|
Logs information about SQL queries. Similar
to the legacy qt_debug,SQL option.
|
|
Logs information about cursor details. Similar
to the legacy qt_debug,Cursor option.
|
|
Logs information about transaction details.
|
|
Logs details of connection attributes and related
information. Mapped to the connection information formerly output
with legacy qt_debug,SQL and qt_debug,Cursor.
|
|
Logs performance details in the server context. |
For more information on log entry types of the DataServer server context and other log entry types specific to the server context, see Troubleshoot ABL Applications
The following table identifies the logging levels and entry types for client and server contexts.
| Operation Mode | Logging Option | OE Client | MSS/Oracle DataServer |
|---|---|---|---|
| Startup / connection | Logging level | -logginglevel, parameter |
-Dsrv logginglevel, parameter |
| Log entry types | -logentrytypes, parameter |
-Dsrv logentrytypes, parameter |
|
| ubroker.properties12 | -logginglevel, parameter -logentrytypes, parameter |
-Dsrv logginglevel -Dsrv logentrytype |
|
| Runtime setting | Logging level | LOG-MANAGER: LOGGING-LEVEL attribute |
DSLOG-MANAGER: LOGGING-LEVEL attribute |
| Logging level | DSLOG-MANAGER: LOG-ENTRY-TYPES attribute |
DSLOG-MANAGER: LOG-ENTRY-TYPES attribute |
The following code example 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 following 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.
|