Controlling logging from sakai.properties

Information

This shows how to control tomcat logging using the sakai.properties file

Turning on logging for services

  1. Example: Turn on debug logging for Sakai email service
    Include this in sakai.properties:
    log.config.count = 1
    log.config.1 = DEBUG.org.sakaiproject.email.impl.BasicEmailService
    
    • Note: You should use the name of the actual fully qualified classname which has the logging in it and not the classname of the service api
  2. Example: Turn on debug logging for UserDirectoryService and SiteService
    Include this in sakai.properties:
    log.config.count = 2
    log.config.1 = DEBUG.org.sakaiproject.user.impl.BaseUserDirectoryService
    log.config.2 = DEBUG.org.sakaiproject.site.impl.BaseSiteService
    
    • Note: The log config count should be equal to the total number of log.config lines