Package nl.vpro.logging
Class Slf4jHelper
- java.lang.Object
-
- nl.vpro.logging.Slf4jHelper
-
public class Slf4jHelper extends Object
- Since:
- 1.77
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
debugOrInfo(org.slf4j.Logger logger, boolean info, String format, Object... argArray)
static boolean
isEnabled(@NonNull org.slf4j.Logger logger, @NonNull org.slf4j.event.Level level)
static void
log(org.slf4j.Logger logger, Level level, String txt)
static void
log(org.slf4j.Logger logger, Level level, String format, Object... argArray)
static void
log(org.slf4j.Logger logger, Level level, String txt, Throwable throwable)
static void
log(org.slf4j.Logger logger, org.slf4j.event.Level level, String txt)
Log at the specified level.static void
log(org.slf4j.Logger logger, org.slf4j.event.Level level, String format, Object... argArray)
Log at the specified level.static void
log(org.slf4j.Logger logger, org.slf4j.event.Level level, String txt, Throwable throwable)
Log at the specified level, with a Throwable on top.static String
returnAndInfo(@NonNull org.slf4j.Logger logger, @NonNull String format, Object... arg)
static String
returnAndWarn(@NonNull org.slf4j.Logger logger, @NonNull String format, Object... arg)
-
-
-
Method Detail
-
log
public static void log(org.slf4j.Logger logger, org.slf4j.event.Level level, String txt)
Log at the specified level. If the "logger" is null, nothing is logged. If the "level" is null, nothing is logged. If the "txt" is null, behaviour depends on the SLF4J implementation.
-
log
public static void log(org.slf4j.Logger logger, Level level, String format, Object... argArray)
-
log
public static void log(org.slf4j.Logger logger, org.slf4j.event.Level level, String format, Object... argArray)
Log at the specified level. If the "logger" is null, nothing is logged. If the "level" is null, nothing is logged. If the "format" or the "argArray" are null, behaviour depends on the SLF4J-backing implementation.
-
debugOrInfo
public static void debugOrInfo(org.slf4j.Logger logger, boolean info, String format, Object... argArray)
-
log
public static void log(org.slf4j.Logger logger, org.slf4j.event.Level level, String txt, Throwable throwable)
Log at the specified level, with a Throwable on top. If the "logger" is null, nothing is logged. If the "level" is null, nothing is logged. If the "format" or the "argArray" or the "throwable" are null, behaviour depends on the SLF4J-backing implementation.
-
isEnabled
public static boolean isEnabled(@NonNull org.slf4j.Logger logger, @NonNull org.slf4j.event.Level level)
-
returnAndWarn
public static String returnAndWarn(@NonNull org.slf4j.Logger logger, @NonNull String format, Object... arg)
-
-