Skip to content

Configuring Subsystem Debug Log

Endi S. Dewata edited this page Oct 21, 2021 · 17 revisions

Overview

Each PKI subsystem provides a logging service using java.util.logging (JUL) framework. The logging service which can be used to troubleshoot issues in the subsystem (e.g. database access, certificate issuance, key archival).

For older PKI versions see also:

Configuration

The logging configuration is located at:

The debug.level parameter is stored in:

By default the subsystem will log INFO messages or higher:

debug.level=10

The debug.level is mapped into JUL log level as follows:

PKI Log Level SLF4J Log Level JUL Log Level

0-1 (OBNOXIOUS)

TRACE

FINEST

2-5 (VERBOSE)

DEBUG

FINE

6-10 (INFORM)

INFO

INFO

11-15

WARN

WARNING

>15

ERROR

SEVERE

The subsystem will store the messages in /var/log/pki/pki-tomcat/<subsystem>/debug.YYYY-MM-DD.log which will be rotated daily and purged after 7 days.

Displaying Current Debug Level

To show the current debug level, execute the following command:

$ pki-server ca-config-show debug.level
0

Changing Debug Level

To change the debug level, execute the following command:

$ pki-server ca-config-set debug.level 5

Then restart the server.

Clone this wiki locally