-
Notifications
You must be signed in to change notification settings - Fork 10
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
Docs: don't outright discard the legacy way of logging as sometimes, it's the only solution #144
Comments
Hi @mlcdf 👋 Thank you for raising this issue. |
…ave to use legacy logging (#144)
…ave to use legacy logging (#144)
Thanks :) |
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. |
Does this documenation exist?
Where would you expect to find this documentation?
Details
The following docs regarding logging are a bit misleading:
They either suggest that
tflog
is the only way to log or describelog.Prinft
as the legacy way.But if you want to log in a hook that does not pass a
context.Context
, the legacy way is the only way to do so.Some hooks that don't pass a context:
Description
Different wording explaining that in some cases, using the legacy way of logging is OK and the only way to do so.
(I'm a terraform newbie so I apologize if I missed something)
The text was updated successfully, but these errors were encountered: