Difference between revisions of "Terraform debugging: TF LOG"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 3: Line 3:
 
It will send log to <code>[[stderr]]</code>.
 
It will send log to <code>[[stderr]]</code>.
 
Example:
 
Example:
 +
[[export]] TF_LOG=TRACE
 +
[[export]] TF_LOG=DEBUG
 
  [[export]] TF_LOG=INFO
 
  [[export]] TF_LOG=INFO
  [[export]] TF_LOG=DEBUG
+
  [[export]] TF_LOG=WARN
 
+
[[export]] TF_LOG=ERROR
  
  

Revision as of 08:26, 16 March 2023

To enable debugging setTF_LOG variable to any of these values TRACE, DEBUG, INFO, WARN or ERROR It will send log to stderr. Example:

export TF_LOG=TRACE
export TF_LOG=DEBUG
export TF_LOG=INFO
export TF_LOG=WARN
export TF_LOG=ERROR


Related

See also

Advertising: