Package kr.toxicity.model.api.util
Class LogUtil
java.lang.Object
kr.toxicity.model.api.util.LogUtil
Log util
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddebug(DebugConfig.DebugOption option, @NotNull Runnable runnable) Runs debug if some option is matched.static voiddebug(DebugConfig.DebugOption option, @NotNull Supplier<String> log) Logs debug if some option is matched.static voidhandleException(@NotNull String message, @NotNull Throwable throwable) Handles exception message
-
Method Details
-
handleException
public static void handleException(@NotNull @NotNull String message, @NotNull @NotNull Throwable throwable) Handles exception message- Parameters:
message- messagethrowable- exception
-
debug
public static void debug(@NotNull DebugConfig.DebugOption option, @NotNull @NotNull Supplier<String> log) Logs debug if some option is matched.- Parameters:
option- optionlog- log
-
debug
public static void debug(@NotNull DebugConfig.DebugOption option, @NotNull @NotNull Runnable runnable) Runs debug if some option is matched.- Parameters:
option- optionrunnable- debug task
-