Package org.drasyl.util.logging
Class Logger
- java.lang.Object
-
- org.drasyl.util.logging.Logger
-
public class Logger extends Object
ALogger
that supports lazy evaluation of passend values.Example:
// without lazy logger if (logger.isDebug()) { logger.debug("value: {}", this.expensiveComputation()); } // with lazy logger logger.debug("value: {}", this::expensiveComputation);
- See Also:
LoggerFactory
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String msg)
void
debug(String format, Object arg)
void
debug(String format, Object... arguments)
void
debug(String format, Object arg1, Object arg2)
void
debug(String msg, Throwable t)
void
debug(String format, Supplier<Object> arg)
void
debug(String format, Supplier<Object>... arguments)
void
debug(String format, Supplier<Object> arg1, Supplier<Object> arg2)
void
debug(org.slf4j.Marker marker, String msg)
void
debug(org.slf4j.Marker marker, String format, Object arg)
void
debug(org.slf4j.Marker marker, String format, Object... arguments)
void
debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
debug(org.slf4j.Marker marker, String msg, Throwable t)
void
debug(org.slf4j.Marker marker, String format, Supplier<Object> arg)
void
debug(org.slf4j.Marker marker, String format, Supplier<Object>... arguments)
void
debug(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
org.slf4j.Logger
delegate()
void
error(String msg)
void
error(String format, Object arg)
void
error(String format, Object... arguments)
void
error(String format, Object arg1, Object arg2)
void
error(String msg, Throwable t)
void
error(String format, Supplier<Object> arg)
void
error(String format, Supplier<Object>... arguments)
void
error(String format, Supplier<Object> arg1, Supplier<Object> arg2)
void
error(org.slf4j.Marker marker, String msg)
void
error(org.slf4j.Marker marker, String format, Object arg)
void
error(org.slf4j.Marker marker, String format, Object... arguments)
void
error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
error(org.slf4j.Marker marker, String msg, Throwable t)
void
error(org.slf4j.Marker marker, String format, Supplier<Object> arg)
void
error(org.slf4j.Marker marker, String format, Supplier<Object>... argArray)
void
error(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
String
getName()
void
info(String msg)
void
info(String format, Object arg)
void
info(String format, Object... arguments)
void
info(String format, Object arg1, Object arg2)
void
info(String msg, Throwable t)
void
info(String format, Supplier<Object> arg)
void
info(String format, Supplier<Object>... arguments)
void
info(String format, Supplier<Object> arg1, Supplier<Object> arg2)
void
info(org.slf4j.Marker marker, String msg)
void
info(org.slf4j.Marker marker, String format, Object arg)
void
info(org.slf4j.Marker marker, String format, Object... arguments)
void
info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
info(org.slf4j.Marker marker, String msg, Throwable t)
void
info(org.slf4j.Marker marker, String format, Supplier<Object> arg)
void
info(org.slf4j.Marker marker, String format, Supplier<Object>... argArray)
void
info(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
boolean
isDebugEnabled()
boolean
isDebugEnabled(org.slf4j.Marker marker)
boolean
isErrorEnabled()
boolean
isErrorEnabled(org.slf4j.Marker marker)
boolean
isInfoEnabled()
boolean
isInfoEnabled(org.slf4j.Marker marker)
boolean
isTraceEnabled()
boolean
isTraceEnabled(org.slf4j.Marker marker)
boolean
isWarnEnabled()
boolean
isWarnEnabled(org.slf4j.Marker marker)
void
trace(String msg)
void
trace(String format, Object arg)
void
trace(String format, Object... arguments)
void
trace(String format, Object arg1, Object arg2)
void
trace(String msg, Throwable t)
void
trace(String format, Supplier<Object> arg)
void
trace(String format, Supplier<Object>... arguments)
void
trace(String format, Supplier<Object> arg1, Supplier<Object> arg2)
void
trace(org.slf4j.Marker marker, String msg)
void
trace(org.slf4j.Marker marker, String format, Object arg)
void
trace(org.slf4j.Marker marker, String format, Object... argArray)
void
trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
trace(org.slf4j.Marker marker, String msg, Throwable t)
void
trace(org.slf4j.Marker marker, String format, Supplier<Object> arg)
void
trace(org.slf4j.Marker marker, String format, Supplier<Object>... argArray)
void
trace(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
void
warn(String msg)
void
warn(String format, Object arg)
void
warn(String format, Object... arguments)
void
warn(String format, Object arg1, Object arg2)
void
warn(String msg, Throwable t)
void
warn(String format, Supplier<Object> arg)
void
warn(String format, Supplier<Object>... arguments)
void
warn(String format, Supplier<Object> arg1, Supplier<Object> arg2)
void
warn(org.slf4j.Marker marker, String msg)
void
warn(org.slf4j.Marker marker, String format, Object arg)
void
warn(org.slf4j.Marker marker, String format, Object... arguments)
void
warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
warn(org.slf4j.Marker marker, String msg, Throwable t)
void
warn(org.slf4j.Marker marker, String format, Supplier<Object> arg)
void
warn(org.slf4j.Marker marker, String format, Supplier<Object>... argArray)
void
warn(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
-
-
-
Method Detail
-
delegate
public org.slf4j.Logger delegate()
-
getName
public String getName()
-
isTraceEnabled
public boolean isTraceEnabled()
-
trace
public void trace(String msg)
-
trace
@SafeVarargs public final void trace(String format, Supplier<Object>... arguments)
-
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker)
-
trace
public void trace(org.slf4j.Marker marker, String msg)
-
trace
public void trace(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
-
trace
@SafeVarargs public final void trace(org.slf4j.Marker marker, String format, Supplier<Object>... argArray)
-
isDebugEnabled
public boolean isDebugEnabled()
-
debug
public void debug(String msg)
-
debug
@SafeVarargs public final void debug(String format, Supplier<Object>... arguments)
-
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker)
-
debug
public void debug(org.slf4j.Marker marker, String msg)
-
debug
public void debug(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
-
debug
@SafeVarargs public final void debug(org.slf4j.Marker marker, String format, Supplier<Object>... arguments)
-
isInfoEnabled
public boolean isInfoEnabled()
-
info
public void info(String msg)
-
info
@SafeVarargs public final void info(String format, Supplier<Object>... arguments)
-
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker)
-
info
public void info(org.slf4j.Marker marker, String msg)
-
info
public void info(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
-
info
@SafeVarargs public final void info(org.slf4j.Marker marker, String format, Supplier<Object>... argArray)
-
isWarnEnabled
public boolean isWarnEnabled()
-
warn
public void warn(String msg)
-
warn
@SafeVarargs public final void warn(String format, Supplier<Object>... arguments)
-
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker)
-
warn
public void warn(org.slf4j.Marker marker, String msg)
-
warn
public void warn(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
-
warn
@SafeVarargs public final void warn(org.slf4j.Marker marker, String format, Supplier<Object>... argArray)
-
isErrorEnabled
public boolean isErrorEnabled()
-
error
public void error(String msg)
-
error
@SafeVarargs public final void error(String format, Supplier<Object>... arguments)
-
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker)
-
error
public void error(org.slf4j.Marker marker, String msg)
-
error
public void error(org.slf4j.Marker marker, String format, Supplier<Object> arg1, Supplier<Object> arg2)
-
error
@SafeVarargs public final void error(org.slf4j.Marker marker, String format, Supplier<Object>... argArray)
-
-