DEBUG
The most detailed log level, for values and branches that only help a developer reproducing a fault.
In more detail
Debug records cover things like which key was looked up or which path was taken. They are normally switched off in production, because leaving them on multiplies log volume and cost.
Example
{"level": "DEBUG", "event": "cache_lookup", "key": "user:42"}Related terms
- log level — A label on each log message saying how serious it is, from debug and info up to error, critical and emergency.
- INFO — The default log level, for normal events a business would recognise, such as an order accepted or a job finished.
Taught in
- Structured Logging And Why Text Fails — Full-Stack Observability: Metrics, Tracing & Logging
- Log Levels Done Properly — Full-Stack Observability: Metrics, Tracing & Logging
- Verbose Logging: TF_LOG And Friends — HashiCorp Terraform Associate (004) Exam Prep
- The Full Mock: Sixty Minutes, Eight Areas, One Plan For The Last Week — HashiCorp Terraform Associate (004) Exam Prep