Package com.pulumi
Class Log
java.lang.Object
com.pulumi.Log
- All Implemented Interfaces:
com.pulumi.deployment.internal.CountingLogger
@ParametersAreNonnullByDefault
public class Log
extends Object
implements com.pulumi.deployment.internal.CountingLogger
Logging functions that can be called from a Java 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 CLI and Web console afterwards.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a debug-level message that is generally hidden from end-users.voidLogs a debug-level message that is generally hidden from end-users.voidLogs a debug-level message that is generally hidden from end-users.voiddebugOrExcessive(String debugMessage, String excessiveMessage) voidLogs a fatal condition.voidLogs a fatal condition.voidLogs a fatal condition.voidLogs an exception.voidLogs an exception.voidLogs an exception.voidintbooleanstatic Logignore()voidLogs an informational message that is generally printed to stdout during resource operations.voidLogs an informational message that is generally printed to stdout during resource operations.voidLogs an informational message that is generally printed to stdout during resource operations.voidLogs a warning to indicate that something went wrong, but not catastrophically so.voidLogs a warning to indicate that something went wrong, but not catastrophically so.voidLogs a warning to indicate that something went wrong, but not catastrophically so.
-
Constructor Details
-
Log
public Log(com.pulumi.deployment.internal.EngineLogger logger) -
Log
public Log(com.pulumi.deployment.internal.EngineLogger logger, boolean excessiveDebugOutput)
-
-
Method Details
-
ignore
-
excessive
-
debugOrExcessive
-
debug
Logs a debug-level message that is generally hidden from end-users. -
debug
Logs a debug-level message that is generally hidden from end-users. -
debug
public void debug(String message, @Nullable Resource resource, @Nullable Integer streamId, @Nullable Boolean ephemeral) Logs a debug-level message that is generally hidden from end-users. -
info
Logs an informational message that is generally printed to stdout during resource operations. -
info
Logs an informational message that is generally printed to stdout during resource operations. -
info
public void info(String message, @Nullable Resource resource, @Nullable Integer streamId, @Nullable Boolean ephemeral) Logs an informational message that is generally printed to stdout during resource operations. -
warn
Logs a warning to indicate that something went wrong, but not catastrophically so. -
warn
Logs a warning to indicate that something went wrong, but not catastrophically so. -
warn
public void warn(String message, @Nullable Resource resource, @Nullable Integer streamId, @Nullable Boolean ephemeral) Logs a warning to indicate that something went wrong, but not catastrophically so. -
error
Logs a fatal condition. Consider raising an exception after calling Error to stop the Pulumi program. -
error
Logs a fatal condition. Consider raising an exception after calling Error to stop the Pulumi program. -
error
public void error(String message, @Nullable Resource resource, @Nullable Integer streamId, @Nullable Boolean ephemeral) Logs a fatal condition. Consider raising an exception after calling Error to stop the Pulumi program. -
exception
Logs an exception. Consider raising the exception after calling this method to stop the Pulumi program. -
exception
Logs an exception. Consider raising the exception after calling this method to stop the Pulumi program. -
exception
public void exception(Exception exception, @Nullable Resource resource, @Nullable Integer streamId, @Nullable Boolean ephemeral) Logs an exception. Consider raising the exception after calling this method to stop the Pulumi program. -
getErrorCount
public int getErrorCount()- Specified by:
getErrorCountin interfacecom.pulumi.deployment.internal.CountingLogger
-
hasLoggedErrors
public boolean hasLoggedErrors()- Specified by:
hasLoggedErrorsin interfacecom.pulumi.deployment.internal.CountingLogger
-