Which log level should be used when you need to capture detailed debugging information for Vault startup issues?
Trap 1: warn
The warn level records only warnings and above, so it discards the detailed debugging information required for startup diagnosis. It is tempting because warnings often precede failures, but warn would be the right choice when you want to surface potential problems without the volume of debug output.
Trap 2: error
The error level records only failures, so it omits the detailed startup diagnostics the scenario requires. It is tempting because startup problems do produce errors, but error logging would be the right choice when you need notification of failures rather than full debugging detail.
Trap 3: info
The info level captures routine operational messages, not the verbose debugging detail needed to diagnose startup issues. It is tempting because it is Vault's default level, but info would be correct for general operational visibility rather than deep troubleshooting of a failing start.
- A
debug
Debug level emits the most granular diagnostics, including configuration parsing, plugin loading and seal/unseal steps, which is what startup troubleshooting needs. It satisfies the requirement for detailed debugging information beyond the coarser info and warn levels.
- B
warn
Why it fails: The warn level records only warnings and above, so it discards the detailed debugging information required for startup diagnosis. It is tempting because warnings often precede failures, but warn would be the right choice when you want to surface potential problems without the volume of debug output.
- C
error
Why it fails: The error level records only failures, so it omits the detailed startup diagnostics the scenario requires. It is tempting because startup problems do produce errors, but error logging would be the right choice when you need notification of failures rather than full debugging detail.
- D
info
Why it fails: The info level captures routine operational messages, not the verbose debugging detail needed to diagnose startup issues. It is tempting because it is Vault's default level, but info would be correct for general operational visibility rather than deep troubleshooting of a failing start.