opentofu/internal/logging
James Bardin f8893785f0 separate core and provider loggers
Now that hclog can independently set levels on related loggers, we can
separate the log levels for different subsystems in terraform.

This adds the new environment variables, `TF_LOG_CORE` and
`TF_LOG_PROVIDER`, which each take the same set of log level arguments,
and only applies to logs from that subsystem. This means that setting
`TF_LOG_CORE=level` will not show logs from providers, and
`TF_LOG_PROVIDER=level` will not show logs from core. The behavior of
`TF_LOG` alone does not change.

While it is not necessarily needed since the default is to disable logs,
there is also a new level argument of `off`, which reflects the
associated level in hclog.
2020-10-23 12:46:32 -04:00
..
indent_test.go move helper/logging to internal 2020-10-19 14:27:53 -04:00
indent.go move helper/logging to internal 2020-10-19 14:27:53 -04:00
logging.go separate core and provider loggers 2020-10-23 12:46:32 -04:00
panic.go separate core and provider loggers 2020-10-23 12:46:32 -04:00