Package org.apache.solr.logging.jul
Class JulWatcher
- java.lang.Object
-
- org.apache.solr.logging.LogWatcher<LogRecord>
-
- org.apache.solr.logging.jul.JulWatcher
-
public class JulWatcher extends LogWatcher<LogRecord>
-
-
Field Summary
-
Fields inherited from class org.apache.solr.logging.LogWatcher
history, last
-
-
Constructor Summary
Constructors Constructor Description JulWatcher(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAllLevels()Collection<LoggerInfo>getAllLoggers()StringgetName()StringgetThreshold()voidregisterListener(ListenerConfig cfg)voidsetLogLevel(String category, String level)Sets the log level within this frameworkvoidsetThreshold(String level)org.apache.solr.common.SolrDocumenttoSolrDocument(LogRecord event)-
Methods inherited from class org.apache.solr.logging.LogWatcher
add, getHistory, getHistorySize, getLastEvent, newRegisteredLogWatcher, reset
-
-
-
-
Constructor Detail
-
JulWatcher
public JulWatcher(String name)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classLogWatcher<LogRecord>- Returns:
- The implementation name
-
getAllLevels
public List<String> getAllLevels()
- Specified by:
getAllLevelsin classLogWatcher<LogRecord>- Returns:
- The valid level names for this framework
-
setLogLevel
public void setLogLevel(String category, String level)
Description copied from class:LogWatcherSets the log level within this framework- Specified by:
setLogLevelin classLogWatcher<LogRecord>
-
getAllLoggers
public Collection<LoggerInfo> getAllLoggers()
- Specified by:
getAllLoggersin classLogWatcher<LogRecord>- Returns:
- all registered loggers
-
setThreshold
public void setThreshold(String level)
- Specified by:
setThresholdin classLogWatcher<LogRecord>
-
getThreshold
public String getThreshold()
- Specified by:
getThresholdin classLogWatcher<LogRecord>
-
registerListener
public void registerListener(ListenerConfig cfg)
- Specified by:
registerListenerin classLogWatcher<LogRecord>
-
toSolrDocument
public org.apache.solr.common.SolrDocument toSolrDocument(LogRecord event)
- Specified by:
toSolrDocumentin classLogWatcher<LogRecord>
-
-