Troubleshooting and Optimization

Which log level is most appropriate for detailed variable values used during troubleshooting rather than routine production operation?

Show the answer

Correct answerB. DEBUG

AWhy not this: INFO normally records routine operational events, such as successful application startup.

BWhy this is right: DEBUG is intended for detailed diagnostic information such as intermediate variable values.

CWhy not this: ERROR indicates a failure, not ordinary diagnostic details.

DWhy not this: WARN indicates a potential problem or unexpected condition that does not necessarily stop processing.

DEBUG identifies detailed diagnostic information useful during troubleshooting. INFO records routine operational events rather than fine-grained diagnostic values.