Show / Hide Table of Contents

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
object
Log
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public static class Log

Methods

View Source

Debug(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
View Source

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
View Source

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
View Source

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
View Source

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
  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.