StudyToCert

All certifications / Terraform Associate / Lessons

HashiCorp Certified: Terraform Associate Terraform Associate (004) · Domain 7: Maintain infrastructure with Terraform

Verbose logging with `TF_LOG` (TRACE, DEBUG, INFO, WARN, ERROR, JSON), `TF_LOG_PATH`, `TF_LOG_CORE` and `TF_LOG_PROVIDER`

▶ Watch the overview video

Last reviewed September 25, 2026 · Leer en español

Terraform's normal output tells you what it plans and what went wrong at a high level. When you need to see what is happening underneath (which API calls a provider makes, how Terraform walks the dependency graph, why a plugin crashed), you turn on detailed logging with environment variables. No command-line flag does this; it is controlled entirely by the environment.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 5 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Terraform Associate for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Terraform Associate study plan