Message loggers and file handlers

Each properties file contains properties for one or more message loggers. The isLogging property specifies Whether message logs are enabled. To turn on logging for a specific message logger, use:

baseGroup.PDJapp_nameMessageLogger.isLogging=true

To disable logging for a specific message logger, use:

baseGroup.PDJapp_nameMessageLogger.isLogging=false

Associated with each message logger is at least one file handler. A file handler specifies the destination for messages. After message logs are enabled by the message logger, the file handler properties are examined to determine whether to log messages, and if so, how and where. The properties associated with a file handler are:

baseGroup.PDJapp_nameFileHandler.fileName=
baseGroup.PDJapp_nameFileHandler.maxFileSize=
baseGroup.PDJapp_nameFileHandler.maxFiles=

where:

To specify what classes of messages to log, use the MessageAllMaskFilter.mask property as illustrated in Figure 1.

Figure 1. Specifying what messages to log in a properties file

    baseGroup.PDJapp_nameMessageAllMaskFilter.mask=FATAL
     | ERROR | WARNING | NOTICE | NOTICE_VERBOSE

Parent topic: Configure message events with the Java properties file