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()
String
getName()
String
getThreshold()
long
getTimestamp(LogRecord event)
void
registerListener(ListenerConfig cfg)
void
setLogLevel(String category, String level)
Sets the log level within this frameworkvoid
setThreshold(String level)
SolrDocument
toSolrDocument(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:
getName
in classLogWatcher<LogRecord>
- Returns:
- The implementation name
-
getAllLevels
public List<String> getAllLevels()
- Specified by:
getAllLevels
in classLogWatcher<LogRecord>
- Returns:
- The valid level names for this framework
-
setLogLevel
public void setLogLevel(String category, String level)
Description copied from class:LogWatcher
Sets the log level within this framework- Specified by:
setLogLevel
in classLogWatcher<LogRecord>
-
getAllLoggers
public Collection<LoggerInfo> getAllLoggers()
- Specified by:
getAllLoggers
in classLogWatcher<LogRecord>
- Returns:
- all registered loggers
-
setThreshold
public void setThreshold(String level)
- Specified by:
setThreshold
in classLogWatcher<LogRecord>
-
getThreshold
public String getThreshold()
- Specified by:
getThreshold
in classLogWatcher<LogRecord>
-
registerListener
public void registerListener(ListenerConfig cfg)
- Specified by:
registerListener
in classLogWatcher<LogRecord>
-
getTimestamp
public long getTimestamp(LogRecord event)
- Specified by:
getTimestamp
in classLogWatcher<LogRecord>
-
toSolrDocument
public SolrDocument toSolrDocument(LogRecord event)
- Specified by:
toSolrDocument
in classLogWatcher<LogRecord>
-
-