terraform-plugin-log version
Relevant provider source code
n/a
Terraform Configuration Files
n/a
Expected Behavior
From the documentation I would expect that e.g. setting TF_LOG_PROVIDER_{provider}=JSON would result in logs in JSON with TRACE log level.
Actual Behavior
Using TF_LOG_PROVIDER_{provider}=JSON doesn't configure logging at all.
Setting TF_LOG=JSON works as expected though. And I cannot combine them since TF_LOG overrides the others.
Steps to Reproduce
Just set TF_LOG_PROVIDER_{provider}=JSON for any provider when running Terraform.
I'm using it when running provider acceptance tests.
References
terraform-plugin-log version
Relevant provider source code
n/a
Terraform Configuration Files
n/a
Expected Behavior
From the documentation I would expect that e.g. setting
TF_LOG_PROVIDER_{provider}=JSONwould result in logs in JSON withTRACElog level.Actual Behavior
Using
TF_LOG_PROVIDER_{provider}=JSONdoesn't configure logging at all.Setting
TF_LOG=JSONworks as expected though. And I cannot combine them sinceTF_LOGoverrides the others.Steps to Reproduce
Just set
TF_LOG_PROVIDER_{provider}=JSONfor any provider when running Terraform.I'm using it when running provider acceptance tests.
References