Environment variables

The message log behavior specified by a routing file can be changed by using environment variables.

The PD_SVC_ROUTING_FILE environment variable can specify a fully qualified file name for a routing file to replace the one currently in use. If the file is not accessible, or does not exist, no change in logging messages is made. Routing for messages of a specific severity can be manipulated by using environment variables as well. Set the appropriate message log entry format string to the wanted environment variable:

For example, on Windows operating systems, the following command overrides the setting in the corresponding routing file and directs WARNING messages to the standard error device and a file:

SET SVC_WARNING="STDERR:-;FILE:D:\MSGS\MSG__WARNING.LOG"

See Tracing configuration file entries for a description of message log entry format strings.

Parent topic: Message event logging