Using the $UNIQUE_DSLOG environment variable
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
You can use the $UNIQUE_DSLOG environment variable to isolate
the log output of a given server instance and prevent the sharing
of log files resources. When the $UNIQUE_DSLOG variable is set,
the designated DataServer log file name becomes a root name. Specifically,
it becomes the prefix of a log file name that is followed by the
process ID <pid> of the running server process
- which is then suffixed with the familiar .lg extension
if the server name is dataserv. This feature can
be disabled by unsetting the UNIQUELOG environment
variable.
With a unique name, the server executable can manage its own
log file copy. However, the DSLOG-MANAGER system
handle continues to disallow changes to the log file name or closing
of the file at runtime. This restriction ensures that the DataServer
always has an open log file to which it can write information. The
legacy qt_debug logging mechanism relies on this
being the case.
For information on managing log settings, see Analyzing application execution with Enhanced Logger.
To access the DataServer log file on the host machine: