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
 
 
- 
 public class Log4j2Watcher extends LogWatcher<org.apache.logging.log4j.core.LogEvent> 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classLog4j2Watcher.Log4j2Appenderprotected static classLog4j2Watcher.Log4j2Info
 - 
Field SummaryFields Modifier and Type Field Description protected Log4j2Watcher.Log4j2Appenderappenderstatic org.apache.logging.log4j.Loggerlog- 
Fields inherited from class org.apache.solr.logging.LogWatcherhistory, last
 
- 
 - 
Constructor SummaryConstructors Constructor Description Log4j2Watcher()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAllLevels()Collection<LoggerInfo>getAllLoggers()protected Log4j2Watcher.Log4j2AppendergetAppender()protected org.apache.logging.log4j.core.config.LoggerConfiggetLoggerConfig(org.apache.logging.log4j.core.LoggerContext ctx, String loggerName)StringgetName()StringgetThreshold()protected booleanisRootLogger(String loggerName)voidregisterListener(ListenerConfig cfg)voidsetLogLevel(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.LogWatcheradd, getHistory, getHistorySize, getLastEvent, newRegisteredLogWatcher, reset
 
- 
 
- 
- 
- 
Field Detail- 
logpublic static final org.apache.logging.log4j.Logger log 
 - 
appenderprotected Log4j2Watcher.Log4j2Appender appender 
 
- 
 - 
Method Detail- 
getNamepublic String getName() - Specified by:
- getNamein class- LogWatcher<org.apache.logging.log4j.core.LogEvent>
- Returns:
- The implementation name
 
 - 
getAllLevelspublic List<String> getAllLevels() - Specified by:
- getAllLevelsin class- LogWatcher<org.apache.logging.log4j.core.LogEvent>
- Returns:
- The valid level names for this framework
 
 - 
setLogLevelpublic void setLogLevel(String loggerName, String level) Description copied from class:LogWatcherSets the log level within this framework- Specified by:
- setLogLevelin class- LogWatcher<org.apache.logging.log4j.core.LogEvent>
 
 - 
isRootLoggerprotected boolean isRootLogger(String loggerName) 
 - 
getLoggerConfigprotected org.apache.logging.log4j.core.config.LoggerConfig getLoggerConfig(org.apache.logging.log4j.core.LoggerContext ctx, String loggerName)
 - 
getAllLoggerspublic Collection<LoggerInfo> getAllLoggers() - Specified by:
- getAllLoggersin class- LogWatcher<org.apache.logging.log4j.core.LogEvent>
- Returns:
- all registered loggers
 
 - 
setThresholdpublic void setThreshold(String level) - Specified by:
- setThresholdin class- LogWatcher<org.apache.logging.log4j.core.LogEvent>
 
 - 
getThresholdpublic String getThreshold() - Specified by:
- getThresholdin class- LogWatcher<org.apache.logging.log4j.core.LogEvent>
 
 - 
getAppenderprotected Log4j2Watcher.Log4j2Appender getAppender() 
 - 
registerListenerpublic void registerListener(ListenerConfig cfg) - Specified by:
- registerListenerin class- LogWatcher<org.apache.logging.log4j.core.LogEvent>
 
 - 
toSolrDocumentpublic org.apache.solr.common.SolrDocument toSolrDocument(org.apache.logging.log4j.core.LogEvent event) - Specified by:
- toSolrDocumentin class- LogWatcher<org.apache.logging.log4j.core.LogEvent>
 
 
- 
 
-