Runtime Log
Runtime Logs capture additional logging for Vault Java SDK transactions. Unlike the Debug Log, which is enabled per user, the Runtime Log is enabled per Vault. Because the runtime logs are always running, these logs can provide more consistent and reliable logging over the debug log. However, logging more than runtime exceptions may cause Vault performance degradation. Runtime logs capture data in 5-minute intervals. Daily logs are available for download in the Vault UI (Admin > Logs > Developer Logs) and Vault API. Daily logs are stored for 30 days.
The content captured in the Runtime Logs depends on settings set by an Admin in the Vault UI under Settings > General Settings:
- DISABLED: None
- EXCEPTIONS: Runtime exceptions only (default setting)
- ERROR: Runtime exceptions and
LogService#error() - WARN: Runtime exceptions and system warnings,
LogService#error(), andLogService#warn() - INFO: Runtime exceptions and system warnings,
LogService#error(),LogService#warn(), andLogService#info()
Runtime log entries are captured 15 minutes after the Vault Java SDK transaction completes. If you’ve recently encountered an error which is not captured in the runtime log, wait for the transaction to finish and check again.
Runtime logs capture data in 5-minute intervals with the following limits:
- Exceptions and system warnings logging: Maximum 10 KB
LogServicelogging: Maximum 40 KB
If a limit is reached, the Runtime log captures a LIMIT entry with the error details and stops capturing data. After the current 5-minute period elapses, logging resumes automatically.
Adding Custom Runtime Log Messages
Section link for Adding Custom Runtime Log MessagesThe LogService allows developers to send a message directly to the Runtime Log to help troubleshoot issues. This is especially helpful when troubleshooting an issue that only occurs at runtime, meaning it’s not reproducible in debugging. For example, a developer can write a variable value to the runtime log at runtime.
Refer to the Javadocs