# Functions
DataSourceContext injects the data source type into logger contexts.
InitContext creates SDK and provider logger contexts.
ProtocolData emits raw protocol data to a file, if given a directory.
ProtocolError emits a protocol subsystem log at ERROR level.
ProtocolPrivateData emits raw protocol private data to a file, if given a directory.
ProtocolSetField returns a context with the additional protocol subsystem field set.
ProtocolTrace emits a protocol subsystem log at TRACE level.
ProtocolVersionContext injects the protocol version into logger contexts.
ProtocolWarn emits a protocol subsystem log at WARN level.
ProtoSubsystemContext adds the proto subsystem to the SDK logger context.
ProviderAddressContext injects the provider address into logger contexts.
No description provided by the author
RequestIdContext injects a unique request ID into logger contexts.
ResourceContext injects the resource type into logger contexts.
RpcContext injects the RPC name into logger contexts.
# Constants
EnvTfLogProvider is the prefix of the environment variable that sets the logging level of the root provider logger for the provider being served.
EnvTfLogSdk is an environment variable that sets the root logging level of SDK loggers.
EnvTfLogSdkProto is an environment variable that sets the logging level of SDK protocol loggers.
EnvTfLogSdkProtoDataDir is an environment variable that sets the directory to write raw protocol data files for debugging purposes.
Whether the DeferralAllowed client capability is enabled.
The type of data source being operated on, such as "archive_file".
The Deferred reason for an RPC response.
Attribute of the diagnostic being logged.
Detail of the diagnostic being logged.
Number of the error diagnostics.
Severity of the diagnostic being logged.
Summary of the diagnostic being logged.
Number of the warning diagnostics.
Underlying error string.
Argument position of the function error.
Boolean indicating presence of function error.
Message of the function error.
Path to protocol data file, such as "/tmp/example.json".
The protocol version being used, as a string, such as "6".
The full address of the provider, such as registry.terraform.io/hashicorp/random.
Duration in milliseconds for the RPC request.
A unique ID for the RPC request.
The type of resource being operated on, such as "random_pet".
The RPC being run, such as "ApplyResourceChange".
Whether the GetProviderSchemaOptional server capability is enabled.
Whether the PlanDestroy server capability is enabled.
SubsystemProto is the tfsdklog subsystem name for protocol logging.