18 #ifndef _LOG4CXX_APPENDER_SKELETON_H 19 #define _LOG4CXX_APPENDER_SKELETON_H 22 #pragma warning ( push ) 23 #pragma warning ( disable: 4231 4251 4275 4786 ) 27 #include <log4cxx/appender.h> 28 #include <log4cxx/layout.h> 29 #include <log4cxx/spi/errorhandler.h> 30 #include <log4cxx/spi/filter.h> 31 #include <log4cxx/helpers/objectimpl.h> 32 #include <log4cxx/helpers/mutex.h> 33 #include <log4cxx/helpers/pool.h> 34 #include <log4cxx/level.h> 79 mutable SHARED_MUTEX mutex;
92 BEGIN_LOG4CXX_CAST_MAP()
95 LOG4CXX_CAST_ENTRY(spi::OptionHandler)
96 END_LOG4CXX_CAST_MAP()
99 AppenderSkeleton(const
LayoutPtr& layout);
102 void releaseRef() const;
114 virtual
void activateOptions(
log4cxx::helpers::Pool& ) {}
115 virtual void setOption(
const LogString& option,
const LogString& value);
186 bool isAsSevereAsThreshold(
const LevelPtr& level)
const;
209 this->layout = layout1;
217 this->name.assign(name1);
229 void setThreshold(
const LevelPtr& threshold);
234 #if defined(_MSC_VER) 235 #pragma warning ( pop ) 239 #endif //_LOG4CXX_APPENDER_SKELETON_H LevelPtr threshold
There is no level threshold filtering by default.
Definition: appenderskeleton.h:59
bool closed
Is this appender closed?
Definition: appenderskeleton.h:76
Implementation base class for all appenders.
Definition: appenderskeleton.h:45
LogString name
Appenders are named.
Definition: appenderskeleton.h:55
spi::ErrorHandlerPtr errorHandler
It is assumed and enforced that errorHandler is never null.
Definition: appenderskeleton.h:64
const spi::ErrorHandlerPtr & getErrorHandler() const
Return the currently set spi::ErrorHandler for this Appender.
Definition: appenderskeleton.h:132
void setLayout(const LayoutPtr &layout1)
Set the layout for this appender.
Definition: appenderskeleton.h:207
LayoutPtr layout
The layout variable does not need to be set if the appender implementation has its own layout...
Definition: appenderskeleton.h:52
void setName(const LogString &name1)
Set the name of this Appender.
Definition: appenderskeleton.h:215
Implementation class for Object.
Definition: objectimpl.h:28
spi::FilterPtr headFilter
The first filter in the filter chain.
Definition: appenderskeleton.h:68
spi::FilterPtr tailFilter
The last filter in the filter chain.
Definition: appenderskeleton.h:71
LogString getName() const
Returns the name of this Appender.
Definition: appenderskeleton.h:167
Implement this interface for your own strategies for outputting log statements.
Definition: appender.h:56
LayoutPtr getLayout() const
Returns the layout of this appender.
Definition: appenderskeleton.h:158
const LevelPtr & getThreshold() const
Returns this appenders threshold level.
Definition: appenderskeleton.h:176
spi::FilterPtr getFilter() const
Returns the head Filter.
Definition: appenderskeleton.h:140
Definition: appender.h:33
const spi::FilterPtr & getFirstFilter() const
Return the first filter in the filter chain for this Appender.
Definition: appenderskeleton.h:150