public class ERXEOFAppender
extends org.apache.log4j.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 EOEditingContext |
ec
holds a reference to the logging editing context
|
protected String |
loggingEntity
holds the logging entity name
|
Constructor and Description |
---|
ERXEOFAppender() |
Modifier and Type | Method and Description |
---|---|
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 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(org.apache.log4j.spi.LoggingEvent event)
This is where the real logging happens.
|
protected String loggingEntity
protected EOEditingContext ec
protected int bufferSize
protected boolean conditionsChecked
protected int currentBufferSize
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 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(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 eventCopyright © 2002 – 2024 Project Wonder.