public final class CategoryUtil extends Object
Logger
methods implemented by log4j-core
if appropriate.Modifier and Type | Method and Description |
---|---|
static Map<String,Appender> |
getAppenders(Logger logger)
Delegates to
Logger.getAppenders() if appropriate. |
static Iterator<Filter> |
getFilters(Logger logger)
Delegates to
Logger.getFilters() if appropriate. |
static LoggerContext |
getLoggerContext(Logger logger)
Delegates to
Logger.getContext() if appropriate. |
static Logger |
getParent(Logger logger)
Delegates to
Logger.getParent() if appropriate. |
static boolean |
isAdditive(Logger logger)
Delegates to
Logger.isAdditive() if appropriate. |
static void |
setAdditivity(Logger logger,
boolean additive)
Delegates to
Logger.setAdditive(boolean) if appropriate. |
static void |
setLevel(Logger logger,
Level level)
Delegates to
Logger.setLevel(Level) if appropriate. |
public static Map<String,Appender> getAppenders(Logger logger)
Logger.getAppenders()
if appropriate.logger
- The target logger.public static Iterator<Filter> getFilters(Logger logger)
Logger.getFilters()
if appropriate.logger
- The target logger.public static LoggerContext getLoggerContext(Logger logger)
Logger.getContext()
if appropriate.logger
- The target logger.public static Logger getParent(Logger logger)
Logger.getParent()
if appropriate.logger
- The target logger.public static boolean isAdditive(Logger logger)
Logger.isAdditive()
if appropriate.logger
- The target logger.public static void setAdditivity(Logger logger, boolean additive)
Logger.setAdditive(boolean)
if appropriate.logger
- The target logger.additive
- Boolean value to indicate whether the Logger is additive or not.public static void setLevel(Logger logger, Level level)
Logger.setLevel(Level)
if appropriate.logger
- The target logger.level
- The Level to use on this Logger, may be null.Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.