Apache log4cxx Version 0.13.0
|
#include <outputdebugstringappender.h>
Public Member Functions | |
OutputDebugStringAppender () | |
bool | requiresLayout () const |
Configurators call this method to determine if the appender requires a layout. | |
virtual void | close () |
Release any resources allocated within the appender such as file handles, network connections, etc. | |
virtual void | append (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p) |
Subclasses of AppenderSkeleton should implement this method to perform actual logging. | |
![]() | |
AppenderSkeleton () | |
AppenderSkeleton (const LayoutPtr &layout) | |
void | finalize () |
Finalize this appender by calling the derived class' close method. | |
virtual void | activateOptions (log4cxx::helpers::Pool &) |
Derived appenders should override this method if option structure requires it. | |
virtual void | setOption (const LogString &option, const LogString &value) |
Set option to value . | |
void | addFilter (const spi::FilterPtr &newFilter) |
Add a filter to end of the filter list. | |
void | clearFilters () |
Clear the filters chain. | |
const spi::ErrorHandlerPtr & | getErrorHandler () const |
Return the currently set spi::ErrorHandler for this Appender. | |
spi::FilterPtr | getFilter () const |
Returns the head Filter. | |
const spi::FilterPtr & | getFirstFilter () const |
Return the first filter in the filter chain for this Appender. | |
LayoutPtr | getLayout () const |
Returns the layout of this appender. | |
LogString | getName () const |
Returns the name of this Appender. | |
const LevelPtr & | getThreshold () const |
Returns this appenders threshold level. | |
bool | isAsSevereAsThreshold (const LevelPtr &level) const |
Check whether the message level is below the appender's threshold. | |
virtual void | doAppend (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) |
This method performs threshold checks and invokes filters before delegating actual logging to the subclasses specific AppenderSkeleton::append method. | |
void | setErrorHandler (const spi::ErrorHandlerPtr eh) |
Set the ErrorHandler for this Appender. | |
void | setLayout (const LayoutPtr &layout1) |
Set the layout for this appender. | |
void | setName (const LogString &name1) |
Set the name of this Appender. | |
void | setThreshold (const LevelPtr &threshold) |
Set the threshold level. | |
![]() | |
virtual | ~Appender () |
void | asdf () |
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. | |
![]() | |
virtual | ~OptionHandler () |
virtual void | activateOptions (log4cxx::helpers::Pool &p)=0 |
Activate the options that were previously set with calls to option setters. | |
virtual void | setOption (const LogString &option, const LogString &value)=0 |
Set option to value . | |
![]() | |
virtual | ~Object () |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
Additional Inherited Members | |
![]() | |
virtual void | append (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p)=0 |
Subclasses of AppenderSkeleton should implement this method to perform actual logging. | |
void | doAppendImpl (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) |
![]() | |
LayoutPtr | layout |
The layout variable does not need to be set if the appender implementation has its own layout. | |
LogString | name |
Appenders are named. | |
LevelPtr | threshold |
There is no level threshold filtering by default. | |
spi::ErrorHandlerPtr | errorHandler |
It is assumed and enforced that errorHandler is never null. | |
spi::FilterPtr | headFilter |
The first filter in the filter chain. | |
spi::FilterPtr | tailFilter |
The last filter in the filter chain. | |
bool | closed |
Is this appender closed? | |
log4cxx::helpers::Pool | pool |
std::recursive_mutex | mutex |
log4cxx::nt::OutputDebugStringAppender::OutputDebugStringAppender | ( | ) |
|
virtual |
Subclasses of AppenderSkeleton
should implement this method to perform actual logging.
See also AppenderSkeleton::doAppend method.
Implements log4cxx::AppenderSkeleton.
|
inlinevirtual |
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.
Implements log4cxx::Appender.
|
inlinevirtual |
Configurators call this method to determine if the appender requires a layout.
If this method returns true
, meaning that layout is required, then the configurator will configure an layout using the configuration information at its disposal. If this method returns false
, meaning that a layout is not required, then layout configuration will be skipped even if there is available layout configuration information at the disposal of the configurator..
In the rather exceptional case, where the appender implementation admits a layout but can also work without it, then the appender should return true
.
Implements log4cxx::Appender.