java.lang.Object
ushiosan.jvm.ULogger
-
Method Summary
Modifier and TypeMethodDescriptionIt generates an error-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.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.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.loggerName(@NotNull Class<?> cls) Creates a new logger instance using the assigned class.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.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.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.logWarning(@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.logWarning(@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.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.
-
Method Details
-
loggerName
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 ifclsis 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 formatargs- format arguments- Returns:
- a record instance configured with the selected items.
- Throws:
IllegalArgumentException- error ifloggerorformatarenull
-
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 recordformat- message formatargs- format arguments- Returns:
- a record instance configured with the selected items.
- Throws:
IllegalArgumentException- error ifloggerorformatarenull
-
logInfo
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 ifloggerorformatarenull
-
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 formatargs- format arguments- Returns:
- a record instance configured with the selected items.
- Throws:
IllegalArgumentException- error ifloggerorformatarenull
-
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 recordformat- message formatargs- format arguments- Returns:
- a record instance configured with the selected items.
- Throws:
IllegalArgumentException- error ifloggerorformatarenull
-
logWarning
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 ifloggerorformatarenull
-
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 formatargs- format arguments- Returns:
- a record instance configured with the selected items.
- Throws:
IllegalArgumentException- error ifloggerorformatarenull
-
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 recordformat- message formatargs- format arguments- Returns:
- a record instance configured with the selected items.
- Throws:
IllegalArgumentException- error ifloggerorformatarenull
-
logError
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 ifloggerorformatarenull
-