|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.AppenderSkeleton
er.extensions.logging.ERXEOFAppender
public class 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 com.webobjects.eocontrol.EOEditingContext |
ec
holds a reference to the logging editing context |
protected java.lang.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(org.apache.log4j.spi.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 com.webobjects.eocontrol.EOEditingContext |
editingContext()
Gets the editing context for logging events. |
int |
getBufferSize()
Gets the buffer size. |
java.lang.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(java.lang.String name)
Sets the logging entity name. |
protected void |
subAppend(org.apache.log4j.spi.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 java.lang.String loggingEntity
protected com.webobjects.eocontrol.EOEditingContext ec
protected int bufferSize
protected boolean conditionsChecked
protected int currentBufferSize
Constructor Detail |
---|
public ERXEOFAppender()
Method Detail |
---|
public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
requiresLayout
in class org.apache.log4j.AppenderSkeleton
public void close()
close
in interface org.apache.log4j.Appender
close
in class org.apache.log4j.AppenderSkeleton
public java.lang.String getLoggingEntity()
public void setLoggingEntity(java.lang.String name)
name
- name of the logging entityprotected boolean safeToCreateEditingContext()
protected com.webobjects.eocontrol.EOEditingContext editingContext()
public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize
- size of the bufferprotected boolean checkConditions()
public void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
event
- current logging eventprotected void subAppend(org.apache.log4j.spi.LoggingEvent event)
event
- current logging event
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |