Package ushiosan.jvm

Class ULogger

java.lang.Object
ushiosan.jvm.ULogger

public final class ULogger extends Object
  • Method Details

    • loggerName

      @NotNull public static @NotNull String loggerName(@NotNull @NotNull Class<?> cls)
      Creates a new logger instance using the assigned class.
      Parameters:
      cls - the class that will register the logger
      Returns:
      the logger instance
      Throws:
      IllegalArgumentException - error if cls is null
    • logInfo

      @NotNull public static @NotNull LogRecord logInfo(@NotNull @NotNull String format, Object @Nullable ... args)
      It generates an info-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.
      Parameters:
      format - message format
      args - format arguments
      Returns:
      a record instance configured with the selected items.
      Throws:
      IllegalArgumentException - error if logger or format are null
    • logInfo

      @NotNull public static @NotNull LogRecord logInfo(@NotNull @NotNull Throwable error, @Nullable @Nullable String format, Object @Nullable ... args)
      It generates an info-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.
      Parameters:
      error - the error used to generate the record
      format - message format
      args - format arguments
      Returns:
      a record instance configured with the selected items.
      Throws:
      IllegalArgumentException - error if logger or format are null
    • logInfo

      @NotNull public static @NotNull LogRecord logInfo(@NotNull @NotNull Throwable error)
      It generates an info-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.
      Parameters:
      error - the error used to generate the record
      Returns:
      a record instance configured with the selected items.
      Throws:
      IllegalArgumentException - error if logger or format are null
    • logWarning

      @NotNull public static @NotNull LogRecord logWarning(@NotNull @NotNull String format, Object @Nullable ... args)
      It generates a warning-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.
      Parameters:
      format - message format
      args - format arguments
      Returns:
      a record instance configured with the selected items.
      Throws:
      IllegalArgumentException - error if logger or format are null
    • logWarning

      @NotNull public static @NotNull LogRecord logWarning(@NotNull @NotNull Throwable error, @Nullable @Nullable String format, Object @Nullable ... args)
      It generates a warning-type record, and it is only necessary to pass the error, and it will automatically take care of generating the record.
      Parameters:
      error - the error used to generate the record
      format - message format
      args - format arguments
      Returns:
      a record instance configured with the selected items.
      Throws:
      IllegalArgumentException - error if logger or format are null
    • logWarning

      @NotNull public static @NotNull LogRecord logWarning(@NotNull @NotNull Throwable error)
      It generates a warning-type record, and it is only necessary to pass the error, and it will automatically take care of generating the record.
      Parameters:
      error - the error used to generate the record
      Returns:
      a record instance configured with the selected items.
      Throws:
      IllegalArgumentException - error if logger or format are null
    • logError

      @NotNull public static @NotNull LogRecord logError(@NotNull @NotNull String format, Object @Nullable ... args)
      It generates an error-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.
      Parameters:
      format - message format
      args - format arguments
      Returns:
      a record instance configured with the selected items.
      Throws:
      IllegalArgumentException - error if logger or format are null
    • logError

      @NotNull public static @NotNull LogRecord logError(@NotNull @NotNull Throwable error, @Nullable @Nullable String format, Object @Nullable ... args)
      It generates an error-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.
      Parameters:
      error - the error used to generate the record
      format - message format
      args - format arguments
      Returns:
      a record instance configured with the selected items.
      Throws:
      IllegalArgumentException - error if logger or format are null
    • logError

      @NotNull public static @NotNull LogRecord logError(@NotNull @NotNull Throwable error)
      It generates an error-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.
      Parameters:
      error - the error used to generate the record
      Returns:
      a record instance configured with the selected items.
      Throws:
      IllegalArgumentException - error if logger or format are null