// Copyright 2016-2019, Pulumi Corporation namespace Pulumi { /// /// Logging functions that can be called from a .NET application that will be logged to the /// Pulumi log stream. These events will be printed in the terminal while the Pulumi app /// runs, and will be available from the Web console afterwards. /// public static class Log { /// /// Logs a debug-level message that is generally hidden from end-users. /// public static void Debug(string message, Resource? resource = null, int? streamId = null, bool? ephemeral = null) => Deployment.InternalInstance.Logger.DebugAsync(message, resource, streamId, ephemeral); /// /// Logs an informational message that is generally printed to stdout during resource /// operations. /// public static void Info(string message, Resource? resource = null, int? streamId = null, bool? ephemeral = null) => Deployment.InternalInstance.Logger.InfoAsync(message, resource, streamId, ephemeral); /// /// Warn logs a warning to indicate that something went wrong, but not catastrophically so. /// public static void Warn(string message, Resource? resource = null, int? streamId = null, bool? ephemeral = null) => Deployment.InternalInstance.Logger.WarnAsync(message, resource, streamId, ephemeral); /// /// Error logs a fatal error to indicate that the tool should stop processing resource /// operations immediately. /// public static void Error(string message, Resource? resource = null, int? streamId = null, bool? ephemeral = null) => Deployment.InternalInstance.Logger.ErrorAsync(message, resource, streamId, ephemeral); } }