Class LogUtil

java.lang.Object
kr.toxicity.model.api.util.LogUtil

@Internal public final class LogUtil extends Object
Log util
  • Method Details

    • handleException

      public static void handleException(@NotNull @NotNull String message, @NotNull @NotNull Throwable throwable)
      Handles exception message
      Parameters:
      message - message
      throwable - exception
    • toLog

      @NotNull public static @NotNull net.kyori.adventure.text.Component toLog(@NotNull @NotNull String message, @NotNull @NotNull net.kyori.adventure.text.format.TextColor color)
      Gets log component
      Parameters:
      message - message
      color - color
      Returns:
      component
    • debug

      public static void debug(@NotNull DebugConfig.DebugOption option, @NotNull @NotNull Supplier<String> log)
      Logs debug if some option is matched.
      Parameters:
      option - option
      log - log
    • debug

      public static void debug(@NotNull DebugConfig.DebugOption option, @NotNull @NotNull Runnable runnable)
      Runs debug if some option is matched.
      Parameters:
      option - option
      runnable - debug task