Search⌘ K
AI Features

Verbose Logging and its Outcome

Explore how to use Terraform's verbose logging by setting the TF_LOG environment variable to different levels such as INFO, DEBUG, and TRACE. Understand how to capture logs to files, interpret crash logs generated during failures, and apply these insights to diagnose and troubleshoot Terraform deployment problems efficiently.

Terraform can generate detailed logs by setting the environment variable TF_LOG to a particular level of verbosity.

Log levels

There are five log levels. From most verbose to least, they are TRACE, DEBUG, INFO, WARN, and ERROR. The logs’ output is sent to stderr. If the TF_LOG variable is set to anything other than one of the listed ...