Setting the log file location
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Setting the log file location
You can specify the absolute path of the log file name
with -dslog startup switch to set the location
of the log file. The absolute path is obtained from the $DSLOGDIR environment
variable. So for example, setting $DSLOGDIR="C:\OE\Wrk\logs" and
setting -dslog to mydatasrv.lg,
yields the target server log file name of C:\OE\Wrk\logs\mydatasrv.lg.
If $DSLOGDIR is not set and just the log file name
is specified, then the log file is created in the directory where
the OpenEdge session (client or agent) is started.
The path for the log file name is derived in the following order of preference.
- Usage precedence is for
-dslogwith an absolute path name. - On specifying
-dslogwith relative path then path name, the-dslogspecified is relative to the$DSLOGDIRpath. -
If
-dslogis a relative path and no value has been specified for$DSLOGDIR, then the log file will located in the working directory where the DataServer server component is started. This can be:- The current directory where the OpenEdge client is started, if using an OpenEdge client with a self-service DataServer.
- The working directory of your AppServer broker instance when using a self-service DataServer in the Unified Broker framework.
- The working directory of your DataServer broker instance when using a client-server DataServer in the Unified Broker framework.
- The current directory where you started your traditional broker using a client-server DataServer with ProBroker.
If neither -dslog nor $DSLOGDIR are
specified, the default log file name dataserv.lg is
used with the same directory path order of precedence as previously
mentioned.