Class Log

java.lang.Object
migratedb.v1.core.api.logging.Log

public final class Log extends Object
Logging frontend for MigrateDB components and extensions.
  • Method Details

    • setDefaultLogSystem

      public static void setDefaultLogSystem(LogSystem defaultLogSystem)
    • withLogSystem

      public static <T> T withLogSystem(LogSystem newLogSystem, Supplier<T> action)
      Runs action using the given newLogSystem instead of the default log system for the current thread. The action must be single-threaded.
    • getLog

      public static Log getLog(Class<?> klass)
    • isDebugEnabled

      public boolean isDebugEnabled()
    • debug

      public void debug(@Nullable String message)
    • info

      public void info(@Nullable String message)
    • warn

      public void warn(@Nullable String message)
    • error

      public void error(@Nullable String message)
    • error

      public void error(@Nullable String message, @Nullable Exception e)