WORKERS AHEAD!
You are viewing the development documentation for the Apereo CAS server. The functionality presented here is not officially released yet. This is a work in progress and will be continually updated as development moves forward. You are most encouraged to test the changes presented.
Apache Tomcat - Embedded Servlet Container Logging
The embedded Apache Tomcat container is presently unable to display any log messages below INFO even if your CAS log
configuration explicitly asks for DEBUG or TRACE level data.
See this bug report to learn more.
While workarounds and fixes may become available in the future, for the time being, you may execute the following
changes to get DEBUG level log data from the embedded Apache Tomcat. This
is specially useful if you are troubleshooting the behavior
of Tomcat’s internal components such as valves, etc.
- Design a
logging.propertiesfile as such:
1
2
3
4
handlers = java.util.logging.ConsoleHandler
.level = ALL
java.util.logging.ConsoleHandler.level = FINER
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
- Design a
java.util.logging.config.filesetting as a system/environment variable or command-line argument whose value is set to thelogging.propertiespath. Use the setting when you launch and deploy CAS.
For instance:
1
java -jar /path/to/cas.war -Djava.util.logging.config.file=/path/to/logging.properties