Class JavaLogAdapter
java.lang.Object
net.flectone.pulse.platform.adapter.JavaLogAdapter
- All Implemented Interfaces:
com.alessiodp.libby.logging.adapters.LogAdapter, LogAdapter
An adapter that writes records to the JDK logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlog(@NotNull com.alessiodp.libby.logging.LogLevel level, @Nullable String message, boolean formatted) Logs a message at the given level.voidlog(@NotNull com.alessiodp.libby.logging.LogLevel level, @Nullable String message, @Nullable Throwable throwable, boolean formatted) Logs a failure at the given level.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LogAdapter
log, log
-
Constructor Details
-
JavaLogAdapter
-
-
Method Details
-
log
public void log(@NotNull @NotNull com.alessiodp.libby.logging.LogLevel level, @Nullable @Nullable String message, boolean formatted) Logs a message at the given level.- Specified by:
login interfaceLogAdapter- Parameters:
level- the levelmessage- the messageformatted- whether the message was already formatted by the caller
-
log
public void log(@NotNull @NotNull com.alessiodp.libby.logging.LogLevel level, @Nullable @Nullable String message, @Nullable @Nullable Throwable throwable, boolean formatted) Logs a failure at the given level.- Specified by:
login interfaceLogAdapter- Parameters:
level- the levelmessage- the messagethrowable- the failureformatted- whether the message was already formatted by the caller
-