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 Details

    • Log

      public Log(com.pulumi.deployment.internal.EngineLogger logger)
    • Log

      public Log(com.pulumi.deployment.internal.EngineLogger logger, boolean excessiveDebugOutput)
  • Method Details

    • ignore

      public static Log ignore()
    • excessive

      public void excessive(String message, Object... args)
    • debugOrExcessive

      public void debugOrExcessive(String debugMessage, String excessiveMessage)
    • debug

      public void debug(String message)
      Logs a debug-level message that is generally hidden from end-users.
    • debug

      public void debug(String message, @Nullable Resource resource)
      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

      public void info(String message)
      Logs an informational message that is generally printed to stdout during resource operations.
    • info

      public void info(String message, @Nullable Resource resource)
      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

      public void warn(String message)
      Logs a warning to indicate that something went wrong, but not catastrophically so.
    • warn

      public void warn(String message, @Nullable Resource resource)
      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

      public void error(String message)
      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)
      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

      public void exception(Exception 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)
      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:
      getErrorCount in interface com.pulumi.deployment.internal.CountingLogger
    • hasLoggedErrors

      public boolean hasLoggedErrors()
      Specified by:
      hasLoggedErrors in interface com.pulumi.deployment.internal.CountingLogger