Package org.kiwiproject.beta.slf4j
Class KiwiSlf4j
java.lang.Object
org.kiwiproject.beta.slf4j.KiwiSlf4j
Utilities for SLF4J, mainly to allow logging a message at a specified level. Sometimes it is useful to be able
not just to change the log level of loggers at runtime, but also to select the level of specific log statements.
For example, instead of having to hard code a
LOG.debug(...), you can use one of the log methods
in this utility to permit changing the level at which a specific statement is logged. This is more granular than
just changing an entire Logger's level, and is extremely useful in some situations.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEnabled(org.slf4j.Logger logger, org.slf4j.event.Level level) static voidstatic voidstatic voidstatic voidstatic void
-
Method Details
-
isEnabled
public static boolean isEnabled(org.slf4j.Logger logger, org.slf4j.event.Level level) -
log
-
log
-
log
-
log
-
log
-