Trace loggers and file handlers

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

baseGroup.trace_logger_name.isLogging=true

To disable logging for a specific trace logger, use:

baseGroup.PDJapp_nameTraceLogger.isLogging=false

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

baseGroup.PDJapp_nameTraceFileHandler.fileName=
baseGroup.PDJapp_nameTraceFileHandler.maxFileSize=
baseGroup.PDJapp_nameTraceFileHandler.maxFiles=

where:

fileName
Specifies the fully qualified file name to be used as the base name for trace log files. The file can be in any location accessible by the Java™ application.
maxFileSize
Specifies the maximum size, in KB, of each trace log file. Default is 512.
maxFiles
Specifies the maximum number of files to be used for trace logs. Default is 3.

Parent topic: Configure trace events with the Java properties file