Specify the log filename
- Last Updated: October 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
You can specify the name of the log file to which OpenEdge writes all errors and warning messages by using the following:
- The Client Logging (
-clientlog) startup parameter - The
LOGFILE-NAMEattribute on theLOG-MANAGERsystem handle - The
logFileand related properties in the openedge.properties file with OpenEdge Management or OpenEdge Explorer
Note: Use the above to log specifications to designate log file
information for DataServer clients as well. The server context of DataServers, however, starts
with a default log file name of
dataserver.lg and uses
separate mechanisms for designating a log file name. See the DataServer Guide for MS SQL
Server for more information about specifying a log filename for the server context.The following table shows how to specify the log filename.
| Method | General syntax | Example |
|---|---|---|
| Startup parameter |
|
|
LOG-MANAGER system handle |
|
|
| OpenEdge Management or OpenEdge Explorer, or openedge.properties file |
|
|
Note: After starting an ABL session using the Client Logging
(
-clientlog) startup parameter, another log filename can be
specified in code using the LOGFILE-NAME attribute on the
LOG-MANAGER system handle. In this case, OpenEdge stops
writing to the log file specified by the Client Logging (-clientlog) startup parameter and starts writing to the log file specified by the
LOGFILE-NAME attribute. For a detailed description of the Client Logging (-clientlog) startup parameter, see Startup Command and
Parameter Reference. For a detailed description of the LOG-MANAGER system handle, see ABL Reference.
For more information on openedge.properties, see openedge.properties.README and Configure Logging in PAS for OpenEdge.