|
Log4j 1.3alpha-5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implement this interface for your own strategies for outputting log statements.
Method Summary | |
void |
addFilter(Filter newFilter)
Add a filter to the end of the filter list. |
void |
clearFilters()
Clear the list of filters by removing all the filters in it. |
void |
close()
Release any resources allocated within the appender such as file handles, network connections, etc. |
void |
doAppend(LoggingEvent event)
Log in Appender specific way. |
Filter |
getFilter()
Returns the head Filter. |
Layout |
getLayout()
Returns this appenders layout. |
java.lang.String |
getName()
Get the name of this appender. |
void |
setLayout(Layout layout)
Set the Layout for this appender. |
void |
setLoggerRepository(LoggerRepository repository)
Set owning logger repository for this component. |
void |
setName(java.lang.String name)
Set the name of this appender. |
Method Detail |
public void addFilter(Filter newFilter)
public Filter getFilter()
public void clearFilters()
public void close()
It is a programming error to append to a closed appender.
public void doAppend(LoggingEvent event)
Appender
specific way. When appropriate, Loggers will
call the doAppend
method of appender implementations in
order to log.
public java.lang.String getName()
public void setLayout(Layout layout)
Layout
for this appender.
public Layout getLayout()
public void setName(java.lang.String name)
public void setLoggerRepository(LoggerRepository repository) throws java.lang.IllegalStateException
Component
setLoggerRepository
in interface Component
repository
- The repository where this appender is attached.
java.lang.IllegalStateException
- If you try to change the repository after it
has been set.
|
Log4j 1.3alpha-5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |