Environment Variables
OpenTofu refers to a number of environment variables to customize various aspects of its behavior. None of these environment variables are required when using OpenTofu, but they can be used to change some of OpenTofu's default behaviors in unusual situations, or to increase output verbosity for debugging.
TF_LOG
Enables detailed logs to appear on stderr which is useful for debugging. For example:
export TF_LOG=trace
To disable, either unset it, or set it to off. For example:
export TF_LOG=off
For more on debugging OpenTofu, check out the section on Debugging.
TF_LOG_PATH
Copyright (c) The OpenTofu Authors
Copyright (c) 2014 HashiCorp, Inc.
Mozilla Public License, version 2.0
https://opentofu.org/docs/v1.11/cli/config/environment-variables/