log4tango 5.0.2
|
#include <OstreamAppender.hh>
Public Member Functions | |
OstreamAppender (const std::string &name, std::ostream *stream) | |
virtual | ~OstreamAppender () |
virtual bool | reopen () |
Reopens the output destination of this Appender, e.g. More... | |
virtual void | close () |
Release any resources allocated within the appender such as file handles, network connections, etc. More... | |
![]() | |
LayoutAppender (const std::string &name) | |
virtual | ~LayoutAppender () |
virtual bool | requires_layout () const |
Check if the appender uses a layout. More... | |
virtual void | set_layout (Layout *layout=0) |
Change the layout. More... | |
![]() | |
virtual | ~Appender () |
Destructor for Appender. More... | |
int | append (const LoggingEvent &event) |
Log in Appender specific way. More... | |
virtual bool | reopen (void) |
Reopens the output destination of this Appender, e.g. More... | |
virtual void | close (void)=0 |
Release any resources allocated within the appender such as file handles, network connections, etc. More... | |
virtual bool | requires_layout (void) const =0 |
Check if the appender uses a layout. More... | |
virtual void | set_layout (Layout *layout=0)=0 |
Change the layout. More... | |
const std::string & | get_name (void) const |
Returns this appender name. More... | |
virtual bool | is_valid (void) const |
Check if the appender is valid (for instance the underlying connection is ok) This default implementation always return true. More... | |
Protected Member Functions | |
virtual int | _append (const LoggingEvent &event) |
Log in Appender specific way. More... | |
![]() | |
Layout & | get_layout () |
![]() | |
Appender (const std::string &name) | |
Constructor for Appender. More... | |
virtual void | level_changed (Level::Value new_level) |
Inform an appender that its Logger's logging level has changed. More... | |
virtual int | _append (const LoggingEvent &event)=0 |
Log in Appender specific way. More... | |
Protected Attributes | |
std::ostream * | _stream |
Additional Inherited Members | |
![]() | |
typedef Layout | DefaultLayoutType |
log4tango::OstreamAppender::OstreamAppender | ( | const std::string & | name, |
std::ostream * | stream | ||
) |
|
virtual |
|
protectedvirtual |
Log in Appender specific way.
Subclasses of Appender should implement this method to perform actual logging.
event | The LoggingEvent to log. |
Implements log4tango::Appender.
|
virtual |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4tango::Appender.
|
virtual |
Reopens the output destination of this Appender, e.g.
the logfile or TCP socket.
Reimplemented from log4tango::Appender.
|
protected |