Logging
The pulumi.log.debug/info/warn/error collection of functions allow you to log diagnostics, warnings, or errors with the Pulumi engine. These are displayed, alongside all other Pulumi output, in the CLI and in the Pulumi Console. Events are logged and kept for historical purposes in case you want to audit or diagnose a past event.
typescript
pulumi.log.info("message")
pulumi.log.info("message", resource)
pulumi.log.debug("hidden by default")
pulumi.log.warn("warning")
pulumi.log.error("fatal error")For information on how to use diagnostic information for troubleshooting, see Diagnosing Issues.