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:
- SVC_FATAL
- SVC_ERROR
- SVC_WARNING
- SVC_NOTICE
- SVC_NOTICE_VERBOSE
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.
- Displaying and not displaying environment variables in the log
On the computer on which the ISAM server is running, we can configure environment variables to display or not display in the server log.
Parent topic: Message event logging