public class ERXEOFAppender extends AppenderSkeleton
ERXEOFLogEntryInterface
Optional Fields:Modifier and Type | Field and Description |
---|---|
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 String |
loggingEntity
holds the logging entity name
|
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
Constructor and Description |
---|
ERXEOFAppender() |
Modifier and Type | Method and Description |
---|---|
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 com.webobjects.eocontrol.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.
|
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
protected String loggingEntity
protected com.webobjects.eocontrol.EOEditingContext ec
protected int bufferSize
protected boolean conditionsChecked
protected int currentBufferSize
public boolean requiresLayout()
requiresLayout
in interface Appender
requiresLayout
in class AppenderSkeleton
public void close()
close
in interface Appender
close
in class AppenderSkeleton
public String getLoggingEntity()
public void setLoggingEntity(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(LoggingEvent event)
append
in class AppenderSkeleton
event
- current logging eventprotected void subAppend(LoggingEvent event)
event
- current logging eventCopyright © 2002 – 2020 Project Wonder.