pki-server-logging(5)
π pki-server-logging π
okay bestie, welcome to the manual page for pki-server-logging(5) β aka PKI Server Logging Configuration. this is the whole vibe guide for wrangling PKI server logs, and yes, every detail matters, so letβs go π
β¨
πΈ NAME πΈ
pki-server-logging β PKI Server Logging Configuration
π LOCATION π
/etc/pki/instance/logging.properties, /etc/pki/instance/subsystem/CS.cfg
β¨ DESCRIPTION β¨
PKI server logging can be configured using these logging frameworks, bestie:
java.util.logging- Internal Logging
π§ java.util.logging π§
Tomcat uses java.util.logging (JUL) as the default logging framework. The configuration is described in Tomcat Logging:
The default configuration is located at /usr/share/pki/server/conf/logging.properties. During server deployment a link will be created at /etc/pki/instance/logging.properties.
By default only log messages with level WARNING or higher will be logged on the console (i.e. systemd journal). the config block looks like this, literally:
java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.SimpleFormatter.format = %4$s: %5$s%6$s%n
The systemd journal can be viewed with the following command:
$ journalctl -u pki-tomcatd@<instance>.service
For more information see the following documents:
java.util.logging.ConsoleHandlerβhttps://docs.oracle.com/javase/8/docs/api/java/util/logging/ConsoleHandler.htmljava.util.logging.Levelβhttps://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.htmljava.util.logging.SimpleFormatterβhttps://docs.oracle.com/javase/8/docs/api/java/util/logging/SimpleFormatter.htmljava.util.Formatterβhttps://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html
π¦ Internal Logging π¦
Each PKI subsystem uses an internal logging framework for debugging purposes.
The logging configuration is stored in /etc/pki/instance/subsystem/CS.cfg.
debug.level=10
The debug.level determines the amount of details to be logged. The value ranges from 0 (most details) to 10 (least details). The default value is 10.
π CUSTOMIZATION π
π«Ά java.util.logging π«Ά
To customize JUL configuration, replace the link with a copy of the default configuration:
$ rm -f /etc/pki/<instance>/logging.properties
$ cp /usr/share/pki/server/conf/logging.properties /etc/pki/<instance>
$ chown pkiuser.pkiuser /etc/pki/<instance>/logging.properties
Then edit the file as needed. For example, to troubleshoot issues with PKI library add the following lines:
netscape.level = ALL
com.netscape.level = ALL
org.dogtagpki.level = ALL
To troubleshoot issues with RESTEasy add the following line:
org.jboss.resteasy.level = ALL
Then restart the server.
π Internal Logging π
To customize the internal logging configuration, edit the CS.cfg as needed, then restart the server.
π AUTHORS π
Dogtag PKI Team lt;devel@lists.dogtagpki.orggt;.
β SEE ALSO β
π COPYRIGHT π
Copyright (c) 2016 Red Hat, Inc. This is licensed under the GNU General Public License, version 2 (GPLv2). A copy of this license is available at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
source/version: PKI Β· date: November 3, 2016 Β· manual: pki-server-logging(5) β thatβs the whole page, mwah π
β¨π«Ά
π¦ where this page comes from
- centos-stream 9: pki-server 11.2.0-0.2.beta1.el9 Β· GPLv2 and LGPLv2
- ubuntu jammy: pki-server 11.0.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms