Package org.apache.solr.logging
Class LogWatcherConfig
java.lang.Object
org.apache.solr.logging.LogWatcherConfig
Defines the configuration of a
LogWatcher-
Constructor Summary
ConstructorsConstructorDescriptionLogWatcherConfig(boolean enabled, String loggingClass, String watcherThreshold, int watcherSize) -
Method Summary
Modifier and TypeMethodDescriptionGet the implementation of the LogWatcher to use.intboolean
-
Constructor Details
-
LogWatcherConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Returns:
- true if the LogWatcher is enabled
-
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
-
getWatcherSize
public int getWatcherSize()- Returns:
- the size of the LogWatcher queue
-
getWatcherThreshold
- Returns:
- the threshold above which logging events will be recorded
-
asListenerConfig
- Returns:
- a
ListenerConfigobject using this config's settings.
-