pulumi/sdk/dotnet/Pulumi/Log.cs

20 lines
590 B
C#

using Pulumirpc;
namespace Pulumi {
public static class Log {
public static void Info(string format, params object[] args) {
Runtime.Engine.Log(new Pulumirpc.LogRequest {
Severity = LogSeverity.Info,
Message = string.Format(format, args)
});
}
public static void Warning(string format, params object[] args) {
Runtime.Engine.Log(new Pulumirpc.LogRequest {
Severity = LogSeverity.Warning,
Message = string.Format(format, args)
});
}
}
}