Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create terraform.io Documentation for Terraform Logging Functionality #12

Closed
3 of 6 tasks
bflad opened this issue Sep 3, 2021 · 2 comments
Closed
3 of 6 tasks
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@bflad
Copy link
Member

bflad commented Sep 3, 2021

Does this documenation exist?

  • This is new documentation
  • This is an enhancement to existing documentation

Where would you expect to find this documentation?

(either or both)

  • On terraform.io
  • In the GoDoc for this module
  • In this repo as a markdown file
  • Somewhere else

Details

Proper log handling in Terraform is complex! Between trying to understand that Terraform CLI uses the process stderr and not the gRPC stderr stream and the plethora of TF_LOG* environment variables that are available to control logging.

Description

Ideally, this documentation would start with the most common use cases with the interactions/configurations involved, then dive into deeper concepts:

  • Practitioners configuring logging for normal Terraform runs (this can/should be a link to terraform.io documentation)
  • Provider developers configuring logging for a test framework runs
  • SDK developers implementing logging in a SDK or test framework

@paddycarver drew up an excellent little whiteboard sketch that helps show the interaction between a test framework implementing this package and the various spun up processes and environment variables. It would be great to include diagrams like these as editable images in this repository.

References

@bflad bflad added the documentation Improvements or additions to documentation label Sep 3, 2021
@bflad bflad changed the title Create Design Documentation for Terraform Logging Functionality Create terraform.io Documentation for Terraform Logging Functionality Jan 4, 2022
@bflad bflad self-assigned this Jan 4, 2022
@bflad
Copy link
Member Author

bflad commented Jan 25, 2022

Initial documentation has been shipped:

We'll separately create "Logging" pages under SDKv2/Framework to capture special environment variables, logging keys, implementation details, etc for each framework.

@bflad bflad closed this as completed Jan 25, 2022
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant