HashiCorp
TERRAFORM-ASSOCIATE-003 · Question #77
You can configure Terraform to log to a file using the TF_LOG environment variable.
The correct answer is A. True. You can configure Terraform to log to a file using the TF_LOG environment variable. This variable can be set to one of the log levels: TRACE, DEBUG, INFO, WARN or ERROR. You can also use the TF_LOG_PATH environment variable to specify a custom log file location.
Use Terraform Outside the Core Workflow
Question
You can configure Terraform to log to a file using the TF_LOG environment variable.
Options
- ATrue
- BFalse
How the community answered
(58 responses)- A83% (48)
- B17% (10)
Explanation
You can configure Terraform to log to a file using the TF_LOG environment variable. This variable can be set to one of the log levels: TRACE, DEBUG, INFO, WARN or ERROR. You can also use the TF_LOG_PATH environment variable to specify a custom log file location.
Topics
#TF_LOG#logging#environment variables#debugging
Community Discussion
No community discussion yet for this question.