When PDJLog.properties is used

The $JAVA_HOME/PolicyDirector/PDJLog.properties file is used to define message and trace log properties in the following cases:

When we use the default PDJLog.properties file, message logs are enabled only for FATAL, ERROR, and WARNING messages. This is shown in the portion of the PDJLog.properties file in Figure 1. Logging can be enabled for NOTICE and NOTICE_VERBOSE messages by changing the isLogging property to true for the last two properties that are shown in Figure 1.

Figure 1. Portion of the default PDJLog.properties file

    baseGroup.PDJMessageLogger.isLogging=true
    baseGroup.PDJFatalFileHandler.isLogging=true
    baseGroup.PDJErrorFileHandler.isLogging=true
    baseGroup.PDJWarningFileHandler.isLogging=true
    baseGroup.PDJNoticeFileHandler.isLogging=false
    baseGroup.PDJNoticeVerboseFileHandler.isLogging=false

On a AIX, Linux, or Solaris operating system, to enable both NOTICE and NOTICE_VERBOSE messages, and to change the destination properties of NOTICE_VERBOSE messages, the following changes can be made, as indicated in bold:
baseGroup.PDJNoticeFileHandler.isLogging=true

baseGroup.PDJNoticeVerboseFileHandler.fileName=
/tmp/logs/msg__amjrte_verbose.log
baseGroup.PDJNoticeVerboseFileHandler.maxFileSize=1024
baseGroup.PDJNoticeVerboseFileHandler.maxFiles=4
baseGroup.
PDJNoticeVerboseFileHandler.isLogging=true

After making these changes, NOTICE_VERBOSE messages are written to the /tmp/logs/msg__amjrte_verbose.log1 file. After that file reaches 1024 KB, the file is renamed /tmp/logs/msg__amjrte_verbose.log2 and logging continues with a new /tmp/logs/msg__amjrte_verbose.log1 log file. A maximum of four message log files is used.

(The procedure would be the same on a Windows operating system. The file name just needs to be changed to reflect a fully qualified file name on Windows operating systems.)

Parent topic: Configure message events with the Java properties file