Package org.elasticsearch.common.logging
Class Loggers
java.lang.Object
org.elasticsearch.common.logging.Loggers
A set of utilities around Logging.
-
Field Summary
Modifier and TypeFieldDescriptionstatic Setting<org.apache.logging.log4j.Level>
static Setting.AffixSetting<org.apache.logging.log4j.Level>
static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAppender(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.core.Appender appender)
static org.apache.logging.log4j.core.Appender
findAppender(org.apache.logging.log4j.Logger logger, Class<? extends org.apache.logging.log4j.core.Appender> clazz)
static org.apache.logging.log4j.Logger
static org.apache.logging.log4j.Logger
static org.apache.logging.log4j.Logger
static org.apache.logging.log4j.Logger
Just likegetLogger(Class, ShardId, String...)
but String loggerName instead of Class and no extra prefixes.static org.apache.logging.log4j.Logger
static void
removeAppender(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.core.Appender appender)
static void
Set the level of the logger.static void
setLevel(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.Level level)
-
Field Details
-
SPACE
- See Also:
- Constant Field Values
-
LOG_DEFAULT_LEVEL_SETTING
-
LOG_LEVEL_SETTING
-
-
Constructor Details
-
Loggers
public Loggers()
-
-
Method Details
-
getLogger
-
getLogger
Just likegetLogger(Class, ShardId, String...)
but String loggerName instead of Class and no extra prefixes. -
getLogger
-
getLogger
-
getLogger
public static org.apache.logging.log4j.Logger getLogger(org.apache.logging.log4j.Logger parentLogger, String s) -
setLevel
Set the level of the logger. If the new level is null, the logger will inherit it's level from its nearest ancestor with a non-null level. -
setLevel
public static void setLevel(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.Level level) -
addAppender
public static void addAppender(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.core.Appender appender) -
removeAppender
public static void removeAppender(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.core.Appender appender) -
findAppender
public static org.apache.logging.log4j.core.Appender findAppender(org.apache.logging.log4j.Logger logger, Class<? extends org.apache.logging.log4j.core.Appender> clazz)
-