Package org.apache.solr.logging.log4j2
Class Log4j2Watcher
java.lang.Object
org.apache.solr.logging.LogWatcher<org.apache.logging.log4j.core.LogEvent>
org.apache.solr.logging.log4j2.Log4j2Watcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Log4j2Watcher.Log4j2Appenderstatic final org.apache.logging.log4j.LoggerFields inherited from class org.apache.solr.logging.LogWatcher
history, last -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Log4j2Watcher.Log4j2Appenderprotected org.apache.logging.log4j.core.config.LoggerConfiggetLoggerConfig(org.apache.logging.log4j.core.LoggerContext ctx, String loggerName) getName()protected booleanisRootLogger(String loggerName) voidvoidsetLogLevel(String loggerName, String level) Sets the log level within this frameworkvoidsetThreshold(String level) org.apache.solr.common.SolrDocumenttoSolrDocument(org.apache.logging.log4j.core.LogEvent event) Methods inherited from class org.apache.solr.logging.LogWatcher
add, getHistory, getHistorySize, getLastEvent, newRegisteredLogWatcher, reset
-
Field Details
-
log
public static final org.apache.logging.log4j.Logger log -
appender
-
-
Constructor Details
-
Log4j2Watcher
public Log4j2Watcher()
-
-
Method Details
-
getName
- Specified by:
getNamein classLogWatcher<org.apache.logging.log4j.core.LogEvent>- Returns:
- The implementation name
-
getAllLevels
- Specified by:
getAllLevelsin classLogWatcher<org.apache.logging.log4j.core.LogEvent>- Returns:
- The valid level names for this framework
-
setLogLevel
Description copied from class:LogWatcherSets the log level within this framework- Specified by:
setLogLevelin classLogWatcher<org.apache.logging.log4j.core.LogEvent>
-
isRootLogger
-
getLoggerConfig
protected org.apache.logging.log4j.core.config.LoggerConfig getLoggerConfig(org.apache.logging.log4j.core.LoggerContext ctx, String loggerName) -
getAllLoggers
- Specified by:
getAllLoggersin classLogWatcher<org.apache.logging.log4j.core.LogEvent>- Returns:
- all registered loggers
-
setThreshold
- Specified by:
setThresholdin classLogWatcher<org.apache.logging.log4j.core.LogEvent>
-
getThreshold
- Specified by:
getThresholdin classLogWatcher<org.apache.logging.log4j.core.LogEvent>
-
getAppender
-
registerListener
- Specified by:
registerListenerin classLogWatcher<org.apache.logging.log4j.core.LogEvent>
-
toSolrDocument
public org.apache.solr.common.SolrDocument toSolrDocument(org.apache.logging.log4j.core.LogEvent event) - Specified by:
toSolrDocumentin classLogWatcher<org.apache.logging.log4j.core.LogEvent>
-