I had originally made a request here in the terraform-provider-onlogin repo to add support for onelogin API request/response debug logging.
Other providers include support for this and it helps tremendously troubleshooting issue and communicating with provider developers sharing log output. Terraform writes about implementing provider logging here
I've attached an example below of logging coming from the terraform-gsuite-provider visible when we set the TF_LOG env variable to debug:
Obviously this repo is not specific to terraform but this the repo the terraform-onelogin-provider uses as the client for the API, so changes might be made here to provide a way for terraform to capture where it wants to send the logs to which in the case of terraform I beleive would just be to stderr.
Thanks.
Doug
Example API request/response logging coming from the terraform-gsuite-provider:
I had originally made a request here in the terraform-provider-onlogin repo to add support for onelogin API request/response debug logging.
Other providers include support for this and it helps tremendously troubleshooting issue and communicating with provider developers sharing log output. Terraform writes about implementing provider logging here
I've attached an example below of logging coming from the terraform-gsuite-provider visible when we set the TF_LOG env variable to debug:
Obviously this repo is not specific to terraform but this the repo the terraform-onelogin-provider uses as the client for the API, so changes might be made here to provide a way for terraform to capture where it wants to send the logs to which in the case of terraform I beleive would just be to stderr.
Thanks.
Doug
Example API request/response logging coming from the terraform-gsuite-provider: