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.
Inherited Members
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public static class Log
Methods
View SourceDebug(string, Resource?, int?, bool?)
Logs a debug-level message that is generally hidden from end-users.
Declaration
public static void Debug(string message, Resource? resource = null, int? streamId = null, bool? ephemeral = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | |
| Resource | resource | |
| int? | streamId | |
| bool? | ephemeral |
Error(string, Resource?, int?, bool?)
Logs a fatal condition. Consider raising an exception after calling Error to stop the Pulumi program.
Declaration
public static void Error(string message, Resource? resource = null, int? streamId = null, bool? ephemeral = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | |
| Resource | resource | |
| int? | streamId | |
| bool? | ephemeral |
Exception(Exception, Resource?, int?, bool?)
Logs an exception. Consider raising the exception after calling this method to stop the Pulumi program.
Declaration
public static void Exception(Exception exception, Resource? resource = null, int? streamId = null, bool? ephemeral = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception | |
| Resource | resource | |
| int? | streamId | |
| bool? | ephemeral |
Info(string, Resource?, int?, bool?)
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 = null, bool? ephemeral = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | |
| Resource | resource | |
| int? | streamId | |
| bool? | ephemeral |
Warn(string, Resource?, int?, bool?)
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 = null, bool? ephemeral = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | |
| Resource | resource | |
| int? | streamId | |
| bool? | ephemeral |