Package migratedb.v1.core.api.logging
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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(@Nullable String message)voiderror(@Nullable String message)voiderror(@Nullable String message, @Nullable Exception e)static LoggetLog(Class<?> klass)voidinfo(@Nullable String message)booleanisDebugEnabled()static voidsetDefaultLogSystem(LogSystem defaultLogSystem)voidwarn(@Nullable String message)static <T> TwithLogSystem(LogSystem newLogSystem, Supplier<T> action)Runsactionusing the givennewLogSysteminstead of the default log system for the current thread.
-
-
-
Method Detail
-
setDefaultLogSystem
public static void setDefaultLogSystem(LogSystem defaultLogSystem)
-
withLogSystem
public static <T> T withLogSystem(LogSystem newLogSystem, Supplier<T> action)
Runsactionusing the givennewLogSysteminstead of the default log system for the current thread. Theactionmust be single-threaded.
-
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)
-
-