18#ifndef _LOG4CXX_APPENDER_H
19#define _LOG4CXX_APPENDER_H
22 #pragma warning ( push )
23 #pragma warning ( disable: 4231 4251 4275 4786 )
146 #pragma warning ( pop )
Implement this interface for your own strategies for outputting log statements.
Definition: appender.h:57
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 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 addFilter(const spi::FilterPtr &newFilter)=0
Add a filter to the end of the filter list.
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:40
Appenders may delegate their error handling to ErrorHandlers.
Definition: errorhandler.h:65
Users should extend this class to implement customized logging event filtering.
Definition: filter.h:70
The internal representation of logging events.
Definition: loggingevent.h:55
A string based interface to configure package components.
Definition: optionhandler.h:35
std::shared_ptr< Filter > FilterPtr
Definition: appender.h:41
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:38
std::shared_ptr< ErrorHandler > ErrorHandlerPtr
Definition: appender.h:44
Definition: messagehandler.h:23
LOG4CXX_LIST_DEF(AppenderList, AppenderPtr)
std::basic_string< logchar > LogString
Definition: logstring.h:66
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:48
LOG4CXX_PTR_DEF(Appender)
std::shared_ptr< Appender > AppenderPtr
Definition: basicconfigurator.h:29
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:26