Package de.mnl.osgi.lf4osgi
Interface Logger
-
- All Superinterfaces:
Logger
- All Known Implementing Classes:
Lf4OsgiLogger
public interface Logger extends Logger
-
-
Field Summary
-
Fields inherited from interface org.osgi.service.log.Logger
ROOT_LOGGER_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
debug(Supplier<String> messageSupplier)
If debug level is enabled, get the message from the supplier and log it.void
debug(Supplier<String> messageSupplier, Throwable thr)
If debug level is enabled, get the message from the supplier and log it together withe the provided throwable.void
error(Supplier<String> messageSupplier)
If error level is enabled, get the message from the supplier and log it.void
error(Supplier<String> messageSupplier, Throwable thr)
If error level is enabled, get the message from the supplier and log it together withe the provided throwable.void
info(Supplier<String> messageSupplier)
If info level is enabled, get the message from the supplier and log it.void
info(Supplier<String> messageSupplier, Throwable thr)
If info level is enabled, get the message from the supplier and log it together withe the provided throwable.void
trace(Supplier<String> messageSupplier)
If trace level is enabled, get the message from the supplier and log it.void
trace(Supplier<String> messageSupplier, Throwable thr)
If trace level is enabled, get the message from the supplier and log it together withe the provided throwable.void
warn(Supplier<String> messageSupplier)
If warn level is enabled, get the message from the supplier and log it.void
warn(Supplier<String> messageSupplier, Throwable thr)
If warn level is enabled, get the message from the supplier and log it together withe the provided throwable.-
Methods inherited from interface org.osgi.service.log.Logger
audit, audit, audit, audit, debug, debug, debug, debug, debug, error, error, error, error, error, getName, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
-
-
-
-
Method Detail
-
trace
void trace(Supplier<String> messageSupplier)
If trace level is enabled, get the message from the supplier and log it.- Parameters:
messageSupplier
- the message supplier
-
trace
void trace(Supplier<String> messageSupplier, Throwable thr)
If trace level is enabled, get the message from the supplier and log it together withe the provided throwable.- Parameters:
messageSupplier
- the message supplierthr
- the Throwable
-
debug
void debug(Supplier<String> messageSupplier)
If debug level is enabled, get the message from the supplier and log it.- Parameters:
messageSupplier
- the message supplier
-
debug
void debug(Supplier<String> messageSupplier, Throwable thr)
If debug level is enabled, get the message from the supplier and log it together withe the provided throwable.- Parameters:
messageSupplier
- the message supplierthr
- the Throwable
-
info
void info(Supplier<String> messageSupplier)
If info level is enabled, get the message from the supplier and log it.- Parameters:
messageSupplier
- the message supplier
-
info
void info(Supplier<String> messageSupplier, Throwable thr)
If info level is enabled, get the message from the supplier and log it together withe the provided throwable.- Parameters:
messageSupplier
- the message supplierthr
- the Throwable
-
warn
void warn(Supplier<String> messageSupplier)
If warn level is enabled, get the message from the supplier and log it.- Parameters:
messageSupplier
- the message supplier
-
warn
void warn(Supplier<String> messageSupplier, Throwable thr)
If warn level is enabled, get the message from the supplier and log it together withe the provided throwable.- Parameters:
messageSupplier
- the message supplierthr
- the Throwable
-
error
void error(Supplier<String> messageSupplier)
If error level is enabled, get the message from the supplier and log it.- Parameters:
messageSupplier
- the message supplier
-
-