public class JulWatcher extends LogWatcher<LogRecord>
history, last| Constructor and Description |
|---|
JulWatcher(String name) |
| Modifier and Type | Method and 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 framework
|
void |
setThreshold(String level) |
SolrDocument |
toSolrDocument(LogRecord event) |
add, getHistory, getHistorySize, getLastEvent, newRegisteredLogWatcher, resetpublic JulWatcher(String name)
public String getName()
getName in class LogWatcher<LogRecord>public List<String> getAllLevels()
getAllLevels in class LogWatcher<LogRecord>public void setLogLevel(String category, String level)
LogWatchersetLogLevel in class LogWatcher<LogRecord>public Collection<LoggerInfo> getAllLoggers()
getAllLoggers in class LogWatcher<LogRecord>public void setThreshold(String level)
setThreshold in class LogWatcher<LogRecord>public String getThreshold()
getThreshold in class LogWatcher<LogRecord>public void registerListener(ListenerConfig cfg)
registerListener in class LogWatcher<LogRecord>public long getTimestamp(LogRecord event)
getTimestamp in class LogWatcher<LogRecord>public SolrDocument toSolrDocument(LogRecord event)
toSolrDocument in class LogWatcher<LogRecord>Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.