Inherited by AppenderSkeleton [virtual].
Public Member Functions | |
| virtual | ~Appender () |
| virtual void | addFilter (const spi::FilterPtr &newFilter)=0 |
| Add a filter to the end of the filter list. | |
| virtual spi::FilterPtr | getFilter () const =0 |
| Returns the head Filter. | |
| virtual void | clearFilters ()=0 |
| Clear the list of filters by removing all the filters in it. | |
| virtual void | close ()=0 |
| Release any resources allocated within the appender such as file handles, network connections, etc. | |
| virtual void | doAppend (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool)=0 |
Log in Appender specific way. | |
| virtual LogString | getName () const =0 |
| Get the name of this appender. | |
| virtual void | setLayout (const LayoutPtr &layout)=0 |
| Set the Layout for this appender. | |
| virtual LayoutPtr | getLayout () const =0 |
| Returns this appenders layout. | |
| virtual void | setName (const LogString &name)=0 |
| Set the name of this appender. | |
| virtual bool | requiresLayout () const =0 |
| Configurators call this method to determine if the appender requires a layout. | |
|
|
|
|
|
Add a filter to the end of the filter list.
Implemented in AppenderSkeleton. |
|
|
Clear the list of filters by removing all the filters in it.
Implemented in AppenderSkeleton. |
|
|
Release any resources allocated within the appender such as file handles, network connections, etc. It is a programming error to append to a closed appender. Implemented in AsyncAppender, ODBCAppender, SMTPAppender, SocketAppenderSkeleton, SocketHubAppender, SyslogAppender, TelnetAppender, NTEventLogAppender, OutputDebugStringAppender, RollingFileAppenderSkeleton, and WriterAppender. |
|
||||||||||||
|
Log in
When appropriate, Loggers will call the Implemented in AppenderSkeleton. |
|
|
Returns the head Filter. The Filters are organized in a linked list and so all Filters on this Appender are available through the result.
Implemented in AppenderSkeleton. |
|
|
Returns this appenders layout.
Implemented in AppenderSkeleton. |
|
|
Get the name of this appender. The name uniquely identifies the appender. Implemented in AppenderSkeleton. |
|
|
Configurators call this method to determine if the appender requires a layout.
If this method returns
In the rather exceptional case, where the appender implementation admits a layout but can also work without it, then the appender should return Implemented in AsyncAppender, ODBCAppender, SMTPAppender, SocketAppenderSkeleton, SocketHubAppender, SyslogAppender, TelnetAppender, NTEventLogAppender, OutputDebugStringAppender, and WriterAppender. |
|
|
Set the Layout for this appender.
Implemented in AppenderSkeleton. |
|
|
Set the name of this appender. The name is used by other components to identify this appender. Implemented in AppenderSkeleton. |