public class Log4jWatcher extends LogWatcher<org.apache.log4j.spi.LoggingEvent>
history, last
Constructor and Description |
---|
Log4jWatcher(String name) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllLevels() |
Collection<LoggerInfo> |
getAllLoggers() |
String |
getName() |
String |
getThreshold() |
long |
getTimestamp(org.apache.log4j.spi.LoggingEvent event) |
void |
registerListener(ListenerConfig cfg) |
void |
setLogLevel(String category,
String level)
Sets the log level within this framework
|
void |
setThreshold(String level) |
SolrDocument |
toSolrDocument(org.apache.log4j.spi.LoggingEvent event) |
add, getHistory, getHistorySize, getLastEvent, newRegisteredLogWatcher, reset
public Log4jWatcher(String name)
public String getName()
getName
in class LogWatcher<org.apache.log4j.spi.LoggingEvent>
public List<String> getAllLevels()
getAllLevels
in class LogWatcher<org.apache.log4j.spi.LoggingEvent>
public void setLogLevel(String category, String level)
LogWatcher
setLogLevel
in class LogWatcher<org.apache.log4j.spi.LoggingEvent>
public Collection<LoggerInfo> getAllLoggers()
getAllLoggers
in class LogWatcher<org.apache.log4j.spi.LoggingEvent>
public void setThreshold(String level)
setThreshold
in class LogWatcher<org.apache.log4j.spi.LoggingEvent>
public String getThreshold()
getThreshold
in class LogWatcher<org.apache.log4j.spi.LoggingEvent>
public void registerListener(ListenerConfig cfg)
registerListener
in class LogWatcher<org.apache.log4j.spi.LoggingEvent>
public long getTimestamp(org.apache.log4j.spi.LoggingEvent event)
getTimestamp
in class LogWatcher<org.apache.log4j.spi.LoggingEvent>
public SolrDocument toSolrDocument(org.apache.log4j.spi.LoggingEvent event)
toSolrDocument
in class LogWatcher<org.apache.log4j.spi.LoggingEvent>
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.