• James Bardin's avatar
    separate core and provider loggers · f8893785
    James Bardin authored
    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.
    f8893785