Package org.apache.solr.logging
Class LogWatcherConfig
- java.lang.Object
- 
- org.apache.solr.logging.LogWatcherConfig
 
- 
 public class LogWatcherConfig extends Object Defines the configuration of aLogWatcher
- 
- 
Constructor SummaryConstructors Constructor Description LogWatcherConfig(boolean enabled, String loggingClass, String watcherThreshold, int watcherSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenerConfigasListenerConfig()StringgetLoggingClass()Get the implementation of the LogWatcher to use.intgetWatcherSize()StringgetWatcherThreshold()booleanisEnabled()
 
- 
- 
- 
Method Detail- 
isEnabledpublic boolean isEnabled() - Returns:
- true if the LogWatcher is enabled
 
 - 
getLoggingClasspublic String getLoggingClass() Get the implementation of the LogWatcher to use. May be "JUL" or "log4j" for the default java.util.logging or log4j implementations, or the fully-qualified name of a class extendingLogWatcher.- Returns:
- the LogWatcher class to use
 
 - 
getWatcherSizepublic int getWatcherSize() - Returns:
- the size of the LogWatcher queue
 
 - 
getWatcherThresholdpublic String getWatcherThreshold() - Returns:
- the threshold above which logging events will be recorded
 
 - 
asListenerConfigpublic ListenerConfig asListenerConfig() - Returns:
- a ListenerConfigobject using this config's settings.
 
 
- 
 
-