To facilitate testing and troubleshooting during integration, it is recommended to enable verbose logging in Barbican. Logging behavior is controlled through the barbican.conf configuration file. During initial setup and debugging, the global log level can be set to debug = true to provide detailed insight into request handling, PKCS#11 interactions, and cryptographic operations. Barbican logs are written to the DevStack log directory (typically /opt/stack/logs/), with the primary log file named barbican.log.
The following configuration options are commonly used:
-
debug = true
Enables debug-level logging. -
use_syslog = false
Ensures logs are written to file rather than the system journal.
Once testing is complete, it is advisable to set debug = false to limit log volume and reduce operational overhead.