Package com.pulumi
Class Log
- java.lang.Object
-
- com.pulumi.Log
-
- All Implemented Interfaces:
com.pulumi.deployment.internal.CountingLogger
@ParametersAreNonnullByDefault public class Log extends java.lang.Object implements com.pulumi.deployment.internal.CountingLoggerLogging functions that can be called from a Java application that will be logged to thePulumilog 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(java.lang.String message)Logs a debug-level message that is generally hidden from end-users.voiddebug(java.lang.String message, Resource resource)Logs a debug-level message that is generally hidden from end-users.voiddebug(java.lang.String message, Resource resource, java.lang.Integer streamId, java.lang.Boolean ephemeral)Logs a debug-level message that is generally hidden from end-users.voiddebugOrExcessive(java.lang.String debugMessage, java.lang.String excessiveMessage)voiderror(java.lang.String message)Logs a fatal condition.voiderror(java.lang.String message, Resource resource)Logs a fatal condition.voiderror(java.lang.String message, Resource resource, java.lang.Integer streamId, java.lang.Boolean ephemeral)Logs a fatal condition.voidexception(java.lang.Exception exception)Logs an exception.voidexception(java.lang.Exception exception, Resource resource)Logs an exception.voidexception(java.lang.Exception exception, Resource resource, java.lang.Integer streamId, java.lang.Boolean ephemeral)Logs an exception.voidexcessive(java.lang.String message, java.lang.Object... args)intgetErrorCount()booleanhasLoggedErrors()static Logignore()voidinfo(java.lang.String message)Logs an informational message that is generally printed to stdout during resource operations.voidinfo(java.lang.String message, Resource resource)Logs an informational message that is generally printed to stdout during resource operations.voidinfo(java.lang.String message, Resource resource, java.lang.Integer streamId, java.lang.Boolean ephemeral)Logs an informational message that is generally printed to stdout during resource operations.voidwarn(java.lang.String message)Logs a warning to indicate that something went wrong, but not catastrophically so.voidwarn(java.lang.String message, Resource resource)Logs a warning to indicate that something went wrong, but not catastrophically so.voidwarn(java.lang.String message, Resource resource, java.lang.Integer streamId, java.lang.Boolean ephemeral)Logs a warning to indicate that something went wrong, but not catastrophically so.
-
-
-
Method Detail
-
ignore
public static Log ignore()
-
excessive
public void excessive(java.lang.String message, java.lang.Object... args)
-
debugOrExcessive
public void debugOrExcessive(java.lang.String debugMessage, java.lang.String excessiveMessage)
-
debug
public void debug(java.lang.String message)
Logs a debug-level message that is generally hidden from end-users.
-
debug
public void debug(java.lang.String message, @Nullable Resource resource)Logs a debug-level message that is generally hidden from end-users.
-
debug
public void debug(java.lang.String message, @Nullable Resource resource, @Nullable java.lang.Integer streamId, @Nullable java.lang.Boolean ephemeral)Logs a debug-level message that is generally hidden from end-users.
-
info
public void info(java.lang.String message)
Logs an informational message that is generally printed to stdout during resource operations.
-
info
public void info(java.lang.String message, @Nullable Resource resource)Logs an informational message that is generally printed to stdout during resource operations.
-
info
public void info(java.lang.String message, @Nullable Resource resource, @Nullable java.lang.Integer streamId, @Nullable java.lang.Boolean ephemeral)Logs an informational message that is generally printed to stdout during resource operations.
-
warn
public void warn(java.lang.String message)
Logs a warning to indicate that something went wrong, but not catastrophically so.
-
warn
public void warn(java.lang.String message, @Nullable Resource resource)Logs a warning to indicate that something went wrong, but not catastrophically so.
-
warn
public void warn(java.lang.String message, @Nullable Resource resource, @Nullable java.lang.Integer streamId, @Nullable java.lang.Boolean ephemeral)Logs a warning to indicate that something went wrong, but not catastrophically so.
-
error
public void error(java.lang.String message)
Logs a fatal condition. Consider raising an exception after calling Error to stop the Pulumi program.
-
error
public void error(java.lang.String message, @Nullable Resource resource)Logs a fatal condition. Consider raising an exception after calling Error to stop the Pulumi program.
-
error
public void error(java.lang.String message, @Nullable Resource resource, @Nullable java.lang.Integer streamId, @Nullable java.lang.Boolean ephemeral)Logs a fatal condition. Consider raising an exception after calling Error to stop the Pulumi program.
-
exception
public void exception(java.lang.Exception exception)
Logs an exception. Consider raising the exception after calling this method to stop the Pulumi program.
-
exception
public void exception(java.lang.Exception exception, @Nullable Resource resource)Logs an exception. Consider raising the exception after calling this method to stop the Pulumi program.
-
exception
public void exception(java.lang.Exception exception, @Nullable Resource resource, @Nullable java.lang.Integer streamId, @Nullable java.lang.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
-
-