Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CtxKey = ctxKey{}
The key used to retrieve tfbridge.Logger from a context.
Functions ¶
func InitLogging ¶ added in v3.69.0
func InitLogging(ctx context.Context, opts LogOptions) context.Context
Sets up Context-scoped loggers to route Terraform logs to the Pulumi CLI process so they are visible to the user.
Log verbosity is controlled by the TF_LOG environment variable (set to TRACE, DEBUG, INFO, WARN, ERROR or OFF). By default, INFO-level logs are emitted.
See also:
- https://developer.hashicorp.com/terraform/plugin/log/writing - https://www.pulumi.com/docs/support/troubleshooting
Types ¶
type LogOptions ¶ added in v3.69.0
See InitLogging.
type Sink ¶
type Sink interface { Log(context context.Context, sev diag.Severity, urn resource.URN, msg string) error LogStatus(context context.Context, sev diag.Severity, urn resource.URN, msg string) error }
Abstracts the logging interface to HostClient. This is the interface providers use to report logging information back to the Pulumi CLI over gRPC.
Click to show internal directories.
Click to hide internal directories.