Tomcat JSS Logging

From Dogtag
Revision as of 17:49, 29 April 2019 by Edewata (talk | contribs) (References)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Tomcat JSS 7.3 or Later

Starting from version 7.3 the JSS Connector will use JUL logging framework.

To customize the logging configuration:

$ rm -f /var/lib/pki/pki-tomcat/conf/logging.properties
$ cp /usr/share/pki/server/conf/logging.properties /var/lib/pki/pki-tomcat/conf/
$ chown pkiuser.pkiuser /var/lib/pki/pki-tomcat/conf/logging.properties

Edit /var/lib/pki/pki-tomcat/conf/logging.properties and configure the following lines:

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = FINE
org.apache.tomcat.util.net.jss.level = FINE
org.dogtagpki.tomcat.level = FINE

Then restart the server. The logs will appear on the server console (i.e. systemd journal):

$ journalctl -fu pki-tomcatd@pki-tomcat.service

Tomcat JSS 7.2 or Older

To enable the legacy debug logs, edit /var/lib/pki/pki-tomcat/conf/server.xml, add the line

 debug="true"

somewhere under the line

<Connector port="8443"

Start/restart the server. The debug log will be in /tmp/tomcatjss.log (the file name is hardcoded).

References