18#ifndef _LOG4CXX_APPENDER_H
19#define _LOG4CXX_APPENDER_H
88 LOG4CXX_NS::helpers::Pool& pool) = 0;
Implement this interface for your own strategies for outputting log statements.
Definition: appender.h:51
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 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 bool requiresLayout() const =0
Configurators call this method to determine if the appender requires a layout.
virtual void close()=0
Release any resources allocated within the appender such as file handles, network connections,...
virtual void clearFilters()=0
Clear the list of filters by removing all the filters in it.
virtual LayoutPtr getLayout() const =0
Returns this appenders layout.
virtual void setLayout(const LayoutPtr layout)=0
Set the Layout for this appender.
virtual void setName(const LogString &name)=0
Set the name of this appender.
Extend this abstract class to create your own log layout format.
Definition: layout.h:34
Appenders may delegate their error handling to ErrorHandlers.
Definition: errorhandler.h:59
Users should extend this class to implement customized logging event filtering.
Definition: filter.h:68
The data recorded for each logging request.
Definition: loggingevent.h:47
A string based interface to configure package components.
Definition: optionhandler.h:35
#define LOG4CXX_LIST_DEF(N, T)
Definition: log4cxx.h:67
#define LOG4CXX_EXPORT
Definition: log4cxx.h:101
#define LOG4CXX_PTR_DEF(T)
Definition: log4cxx.h:64
#define LOG4CXX_NS
Definition: log4cxx.h:104
std::shared_ptr< ErrorHandler > ErrorHandlerPtr
Definition: appender.h:38
std::shared_ptr< Filter > FilterPtr
Definition: appender.h:35
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:60
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:42
std::shared_ptr< Appender > AppenderPtr
Definition: basicconfigurator.h:29
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:39