Method Summary |
|
protected void | append(LoggingEvent event) If the appender is enabled then start and stop a JAMon entry. |
public void | close() Required log4j method. |
public boolean | getEnableLevelMonitoring() Returns whether or not LevelMonitoring is enabled or not. |
public boolean | getEnableListenerDetails() Specifies whether or not LoggingEvent info will be used in the attached
Log4jBufferListener. |
public boolean | getGeneralize() |
public String | getUnits() Returns the units. |
public boolean | hasGeneralizer() |
public boolean | requiresLayout()
JAMonAppender doesn't have to have a layount because it is acceptable to
default to using the raw message. |
public void | setEnableDefaultGeneralizer(boolean enableDefaultGeneralizer) Enable the use of the DefaultGeneralizer. |
public void | setEnableLevelMonitoring(boolean enableLevelMonitoring) Specifies whether or not there will be a JAMon record for each log4j
Level (DEBUG/WARN/...), and another one that corresponds to all calls to
log4j logging methods. |
public void | setEnableListenerDetails(boolean arrayDetails) |
public void | setEnableListeners(String level) Note this is primarily used by the log4j configurator. |
public void | setGeneralize(boolean generalize) Indicate whether or not a jamon record should be created from the passed in message.
Note you can use the DefaultGeneralizer, your own Generalizer. |
public void | setGeneralizerClass(Generalizer generalizer) Default generalizer based on com.jamonapi.utils.SQLDeArger. |
public void | setGeneralizerDynamic(String generalizerClassStr) Pass in a string class name and this generalizer will be constructed an used. |
public void | setListenerBufferSize(int bufferSize) For defaultBufferSize to take hold it must be called before the first
call to setDefaultListeners. |
public void | setUnits(String units) |