Previous Topic: Modify the Log File Refresh Interval ManuallyNext Topic: Modify the jstd.log Appender


Modify the jsrvr.log Appender

By default, servlets such as PDMContextListener, pdmweb, UploadServlet, and pdm_report log INFO level messages to the jsrvr.log file. You change the threshold level of the jsrvr.log appender to log any messages under the INFO level.

Follow these steps:

  1. Modify the level in the log4j.properties file to the following threshold:
    log4j.appender.jsrvrlog.Threshold=debug
    
  2. Modify the log level of UploadServlet:
    log4j.logger.com.ca.ServicePlus.uploadservlet=debug, jsrvrlog
    
  3. Open the jsrvr.log file.
  4. Confirm that the DEBUG log messages of UploadServlet appear.

Note: If you modify the log level without modifying the threshold level, the DEBUG logs from the servlet do not appear in the file. Not all servlets have explicit loggers attached. For example, the log4j.properties file does include pdmweb, BOServlet, pdm_export, pdm_report, and pdm_cache, which are part of the pdmweb servlet. To see DEBUG logs from these servlets, modify the pdmweb log level.