Package org.apache.log4j.chainsaw
Class Generator
- java.lang.Object
-
- org.apache.log4j.spi.ComponentBase
-
- org.apache.log4j.plugins.PluginSkeleton
-
- org.apache.log4j.plugins.Receiver
-
- org.apache.log4j.chainsaw.Generator
-
- All Implemented Interfaces:
java.lang.Runnable,Plugin,Component,org.apache.log4j.spi.OptionHandler,Thresholdable
public class Generator extends Receiver implements java.lang.Runnable
Class designed to stress, and/or test the Chainsaw GUI by sending it lots of Logging Events.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringbaseString_private static org.apache.log4j.Loggerlogger1private static org.apache.log4j.Loggerlogger2private static org.apache.log4j.Loggerlogger3private booleanshutdownprivate java.lang.Threadthread-
Fields inherited from class org.apache.log4j.plugins.Receiver
thresholdLevel
-
Fields inherited from class org.apache.log4j.plugins.PluginSkeleton
active, name
-
Fields inherited from class org.apache.log4j.spi.ComponentBase
repository
-
-
Constructor Summary
Constructors Constructor Description Generator(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateOptions()private org.apache.log4j.spi.LoggingEventcreateEvent(org.apache.log4j.Level level, org.apache.log4j.Logger logger, java.lang.String msg, java.lang.Throwable t)voidrun()voidshutdown()Call when the plugin should be stopped.-
Methods inherited from class org.apache.log4j.plugins.Receiver
doPost, getThreshold, isAsSevereAsThreshold, setThreshold
-
Methods inherited from class org.apache.log4j.plugins.PluginSkeleton
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getLoggerRepository, getName, isActive, isEquivalent, removePropertyChangeListener, removePropertyChangeListener, setLoggerRepository, setName
-
Methods inherited from class org.apache.log4j.spi.ComponentBase
getLogger, getNonFloodingLogger, resetErrorCount
-
-
-
-
Field Detail
-
logger1
private static final org.apache.log4j.Logger logger1
-
logger2
private static final org.apache.log4j.Logger logger2
-
logger3
private static final org.apache.log4j.Logger logger3
-
baseString_
private final java.lang.String baseString_
-
thread
private java.lang.Thread thread
-
shutdown
private boolean shutdown
-
-
Method Detail
-
createEvent
private org.apache.log4j.spi.LoggingEvent createEvent(org.apache.log4j.Level level, org.apache.log4j.Logger logger, java.lang.String msg, java.lang.Throwable t)
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
shutdown
public void shutdown()
Description copied from interface:PluginCall when the plugin should be stopped.
-
activateOptions
public void activateOptions()
- Specified by:
activateOptionsin interfaceorg.apache.log4j.spi.OptionHandler
-
-