|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.AppenderSkeleton er.extensions.ERXEOFAppender
Basic log4j EOF Appender
Very basic appender, useful for logging events to a database using EOF.
Manditory Fields:
LoggingEntity - Entity for creating logging events. The class mapped to this entity must
implement the interface: ERXEOFLogEntryInterface
Optional Fields:
BufferSize - Number of Events to catch before calling ec.saveChanges()
Field Summary | |
protected int |
bufferSize
holds the buffer size, defaults to -1 |
protected boolean |
conditionsChecked
holds the flag if all the conditions for logging have been checked |
protected int |
currentBufferSize
holds the current buffer size, defaults to 1 |
protected EOEditingContext |
ec
holds a reference to the logging editing context |
protected String |
loggingEntity
holds the logging entity name |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
ERXEOFAppender()
|
Method Summary | |
void |
append(LoggingEvent event)
Entry point for logging an event. |
protected boolean |
checkConditions()
Used to determine if the system is ready to log events to the database. |
void |
close()
Called to close the appender. |
protected EOEditingContext |
editingContext()
Gets the editing context for logging events. |
int |
getBufferSize()
Gets the buffer size. |
String |
getLoggingEntity()
Gets the logging entity name. |
boolean |
requiresLayout()
The EOF Appender does not require a layout |
protected boolean |
safeToCreateEditingContext()
Determines if enough of the EOF stack has been setup that it is safe to create an editing context and log events to the database. |
void |
setBufferSize(int bufferSize)
Sets the current buffer size. |
void |
setLoggingEntity(String name)
Sets the logging entity name. |
protected void |
subAppend(LoggingEvent event)
This is where the real logging happens. |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String loggingEntity
protected EOEditingContext ec
protected int bufferSize
protected boolean conditionsChecked
protected int currentBufferSize
Constructor Detail |
public ERXEOFAppender()
Method Detail |
public boolean requiresLayout()
public void close()
public String getLoggingEntity()
public void setLoggingEntity(String name)
name
- name of the logging entityprotected boolean safeToCreateEditingContext()
protected EOEditingContext editingContext()
public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize
- size of the bufferprotected boolean checkConditions()
public void append(LoggingEvent event)
event
- current logging eventprotected void subAppend(LoggingEvent event)
event
- current logging event
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |