public final class LoggerUtil extends Object
LoggerUtil has utility methods for SLF4J loggers.| Modifier and Type | Method and Description |
|---|---|
static void |
refreshLogback()
Resets the global logack, forcing reread of configuration.
|
static void |
setLevel(org.slf4j.Logger logger,
ch.qos.logback.classic.Level level)
Programatically changes the log level if logger is a logback logger.
|
public static void setLevel(@Nonnull org.slf4j.Logger logger, @Nonnull ch.qos.logback.classic.Level level)
logger - the logback logger, never missinglevel - the new level, never missingClassCastException - if logger is not a logback loggerpublic static void refreshLogback()
Copyright © 2013–2015 binkley's BLOG. All rights reserved.