java.lang.Object
ushiosan.jvm.ULogger
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new logger instance using the assigned class.static voidIt generates an error-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.static voidIt generates an error-type record, and it is only necessary to pass the error, and it will automatically take care of generating the record.static voidIt generates an info-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.static voidIt generates an info-type record, and it is only necessary to pass the error, and it will automatically take care of generating the record.static voidIt generates a warning-type record, and it is only necessary to pass the format, and it will automatically take care of generating the record.static voidlogWarning(@NotNull Logger logger, @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.
-
Method Details
-
getLogger
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
public static void logInfo(@NotNull @NotNull Logger logger, @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:
logger- the logger instanceformat- message formatargs- format arguments- Throws:
IllegalArgumentException- error ifloggerorformatarenull
-
logInfo
It generates an info-type record, and it is only necessary to pass the error, and it will automatically take care of generating the record.- Parameters:
logger- the logger instanceerror- the error used to generate the record- Throws:
IllegalArgumentException- error ifloggerorerrorarenull
-
logWarning
public static void logWarning(@NotNull @NotNull Logger logger, @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:
logger- the logger instanceformat- message formatargs- format arguments- 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:
logger- the logger instanceerror- the error used to generate the record- Throws:
IllegalArgumentException- error ifloggerorerrorarenull
-
logError
public static void logError(@NotNull @NotNull Logger logger, @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:
logger- the logger instanceformat- message formatargs- format arguments- Throws:
IllegalArgumentException- error ifloggerorformatarenull
-
logError
It generates an error-type record, and it is only necessary to pass the error, and it will automatically take care of generating the record.- Parameters:
logger- the logger instanceerror- the error used to generate the record- Throws:
IllegalArgumentException- error ifloggerorerrorarenull
-