Bird
0
0

Which logging level should you use in production to capture only critical errors?

easy📝 Conceptual Q2 of 15
Flask - Deployment
Which logging level should you use in production to capture only critical errors?
ADEBUG
BERROR
CINFO
DWARNING
Step-by-Step Solution
Solution:
  1. Step 1: Recall logging levels and their severity

    DEBUG is lowest, ERROR is for serious problems.
  2. Step 2: Choose level for critical errors only

    ERROR level captures critical errors without noise from less important logs.
  3. Final Answer:

    ERROR -> Option B
  4. Quick Check:

    Production critical logs = ERROR level [OK]
Quick Trick: Use ERROR level to log only serious issues in production [OK]
Common Mistakes:
MISTAKES
  • Using DEBUG level in production causing too many logs
  • Confusing INFO with critical errors
  • Using WARNING which includes less severe messages

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes