Class Log
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.
Inheritance
System.Object
Log
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public static class Log
Methods
View SourceDebug(String, Resource, Nullable<Int32>, Nullable<Boolean>)
Logs a debug-level message that is generally hidden from end-users.
Declaration
public static void Debug(string message, Resource resource = null, int? streamId = default(int? ), bool? ephemeral = default(bool? ))
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | |
| Resource | resource | |
| System.Nullable<System.Int32> | streamId | |
| System.Nullable<System.Boolean> | ephemeral |
Error(String, Resource, Nullable<Int32>, Nullable<Boolean>)
Logs a fatal error to indicate that the tool should stop processing resource operations immediately.
Declaration
public static void Error(string message, Resource resource = null, int? streamId = default(int? ), bool? ephemeral = default(bool? ))
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | |
| Resource | resource | |
| System.Nullable<System.Int32> | streamId | |
| System.Nullable<System.Boolean> | ephemeral |
Exception(Exception, Resource, Nullable<Int32>, Nullable<Boolean>)
Logs a fatal exception to indicate that the tool should stop processing resource operations immediately.
Declaration
public static void Exception(Exception exception, Resource resource = null, int? streamId = default(int? ), bool? ephemeral = default(bool? ))
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | exception | |
| Resource | resource | |
| System.Nullable<System.Int32> | streamId | |
| System.Nullable<System.Boolean> | ephemeral |
Info(String, Resource, Nullable<Int32>, Nullable<Boolean>)
Logs an informational message that is generally printed to stdout during resource operations.
Declaration
public static void Info(string message, Resource resource = null, int? streamId = default(int? ), bool? ephemeral = default(bool? ))
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | |
| Resource | resource | |
| System.Nullable<System.Int32> | streamId | |
| System.Nullable<System.Boolean> | ephemeral |
Warn(String, Resource, Nullable<Int32>, Nullable<Boolean>)
Logs a warning to indicate that something went wrong, but not catastrophically so.
Declaration
public static void Warn(string message, Resource resource = null, int? streamId = default(int? ), bool? ephemeral = default(bool? ))
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | |
| Resource | resource | |
| System.Nullable<System.Int32> | streamId | |
| System.Nullable<System.Boolean> | ephemeral |