public interface Lj4lLogger
| Modifier and Type | Interface and Description |
|---|---|
static class |
Lj4lLogger.LogLevel
Enumeration of log levels.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
debug(Supplier<Object> msgSupplier)
Log a message with debug log level.
|
default void |
debug(Supplier<Object> msgSupplier,
Throwable t)
Log a message with debug log level.
|
default void |
error(Supplier<Object> msgSupplier)
Log a message with error log level.
|
default void |
error(Supplier<Object> msgSupplier,
Throwable t)
Log a message with error log level.
|
default void |
fatal(Supplier<Object> msgSupplier)
Log a message with fatal log level.
|
default void |
fatal(Supplier<Object> msgSupplier,
Throwable t)
Log a message with fatal log level.
|
default void |
info(Supplier<Object> msgSupplier)
Log a message with info log level.
|
default void |
info(Supplier<Object> msgSupplier,
Throwable t)
Log a message with info log level.
|
default boolean |
isDebugEnabled()
Answer whether the log levels DEBUG and above are enabled.
|
boolean |
isEnabled(Lj4lLogger.LogLevel level)
Answer whether the given log level and the levels above are enabled.
|
default boolean |
isErrorEnabled()
Answer whether the log levels ERROR and above are enabled.
|
default boolean |
isFatalEnabled()
Answer whether the log levels FATAL and above are enabled.
|
default boolean |
isInfoEnabled()
Answer whether the log levels INFO and above are enabled.
|
default boolean |
isTraceEnabled()
Answer whether the log levels TRACE and above are enabled.
|
default boolean |
isWarnEnabled()
Answer whether the log levels WARN and above are enabled.
|
void |
logWithLevel(Lj4lLogger.LogLevel level,
String message,
Throwable t)
Log a message with the given log level.
|
default void |
logWithLevel(Lj4lLogger.LogLevel level,
Supplier<Object> msgSupplier)
Log a message with the given log level.
|
default void |
logWithLevel(Lj4lLogger.LogLevel level,
Supplier<Object> msgSupplier,
Throwable t)
Log a message with the given log level.
|
default void |
trace(Supplier<Object> msgSupplier)
Log a message with trace log level.
|
default void |
trace(Supplier<Object> msgSupplier,
Throwable t)
Log a message with trace log level.
|
default void |
warn(Supplier<Object> msgSupplier)
Log a message with warning log level.
|
default void |
warn(Supplier<Object> msgSupplier,
Throwable t)
Log a message with warning log level.
|
default boolean isTraceEnabled()
default void trace(Supplier<Object> msgSupplier)
msgSupplier - A function, which when called, produces the desired log messagedefault void trace(Supplier<Object> msgSupplier, Throwable t)
msgSupplier - A function, which when called, produces the desired log messaget - the exception to log, including its stack tracedefault boolean isDebugEnabled()
default void debug(Supplier<Object> msgSupplier)
msgSupplier - A function, which when called, produces the desired log messagedefault void debug(Supplier<Object> msgSupplier, Throwable t)
msgSupplier - A function, which when called, produces the desired log messaget - the exception to log, including its stack tracedefault boolean isInfoEnabled()
default void info(Supplier<Object> msgSupplier)
msgSupplier - A function, which when called, produces the desired log messagedefault void info(Supplier<Object> msgSupplier, Throwable t)
msgSupplier - A function, which when called, produces the desired log messaget - the exception to log, including its stack tracedefault boolean isWarnEnabled()
default void warn(Supplier<Object> msgSupplier)
msgSupplier - A function, which when called, produces the desired log messagedefault void warn(Supplier<Object> msgSupplier, Throwable t)
msgSupplier - A function, which when called, produces the desired log messaget - the exception to log, including its stack tracedefault boolean isErrorEnabled()
default void error(Supplier<Object> msgSupplier)
msgSupplier - A function, which when called, produces the desired log messagedefault void error(Supplier<Object> msgSupplier, Throwable t)
msgSupplier - A function, which when called, produces the desired log messaget - the exception to log, including its stack tracedefault boolean isFatalEnabled()
default void fatal(Supplier<Object> msgSupplier)
msgSupplier - A function, which when called, produces the desired log messagedefault void fatal(Supplier<Object> msgSupplier, Throwable t)
msgSupplier - A function, which when called, produces the desired log messaget - the exception to log, including its stack traceboolean isEnabled(Lj4lLogger.LogLevel level)
level - log leveldefault void logWithLevel(Lj4lLogger.LogLevel level, Supplier<Object> msgSupplier)
level - A log levelmsgSupplier - A function, which when called, produces the desired log messagedefault void logWithLevel(Lj4lLogger.LogLevel level, Supplier<Object> msgSupplier, Throwable t)
level - A log levelmsgSupplier - A function, which when called, produces the desired log messaget - the exception to log, including its stack tracevoid logWithLevel(Lj4lLogger.LogLevel level, String message, Throwable t)
level - A log levelmessage - A log messaget - the exception to log, including its stack traceCopyright © 2019. All rights reserved.