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=trueTo disable logging for a specific message logger, use:
baseGroup.PDJapp_nameMessageLogger.isLogging=falseAssociated 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:
- fileName
- Fully qualified file name to be used as the base name for message log files. The file can be in any location accessible by the Java™ application.
- maxFileSize
- Specifies the maximum size, in kilobytes, of each message log file. Default is 512.
- maxFiles
- Specifies the maximum number of files to be used for message logs. Default is 3.
To specify what classes of messages to log, use the MessageAllMaskFilter.mask property as illustrated in Figure 1.
Parent topic: Configure message events with the Java properties file