OstreamAppender appends LoggingEvents to ostreams. More...
#include <OstreamAppender.hh>
Public Member Functions | |
virtual void | close () |
Release any resources allocated within the appender such as file handles, network connections, etc. More... | |
OstreamAppender (const std::string &name, std::ostream *stream) | |
virtual bool | reopen () |
Reopens the output destination of this Appender, e.g. More... | |
virtual | ~OstreamAppender () |
Public Member Functions inherited from LayoutAppender | |
LayoutAppender (const std::string &name) | |
virtual bool | requiresLayout () const |
Check if the appender requires a layout. More... | |
virtual void | setLayout (Layout *layout=NULL) |
Set the Layout for this appender. More... | |
virtual | ~LayoutAppender () |
Public Member Functions inherited from AppenderSkeleton | |
virtual void | doAppend (const LoggingEvent &event) |
Log in Appender specific way. More... | |
virtual Filter * | getFilter () |
Get the Filter for this appender. More... | |
virtual Priority::Value | getThreshold () |
Get the threshold priority of this Appender. More... | |
virtual void | setFilter (Filter *filter) |
Set a Filter for this appender. More... | |
virtual void | setThreshold (Priority::Value priority) |
Set the threshold priority of this Appender. More... | |
virtual | ~AppenderSkeleton () |
Destructor for AppenderSkeleton. More... | |
Public Member Functions inherited from Appender | |
const std::string & | getName () const |
Get the name of this appender. More... | |
virtual | ~Appender () |
Destructor for Appender. More... | |
Protected Member Functions | |
virtual void | _append (const LoggingEvent &event) |
Log in Appender specific way. More... | |
Protected Member Functions inherited from LayoutAppender | |
Layout & | _getLayout () |
Return the layout of the appender. More... | |
Protected Member Functions inherited from AppenderSkeleton | |
AppenderSkeleton (const std::string &name) | |
Constructor for AppenderSkeleton. More... | |
Protected Member Functions inherited from Appender | |
Appender (const std::string &name) | |
Constructor for Appender. More... | |
Protected Attributes | |
std::ostream * | _stream |
Additional Inherited Members | |
Public Types inherited from LayoutAppender | |
typedef BasicLayout | DefaultLayoutType |
Static Public Member Functions inherited from Appender | |
static void | closeAll () |
Call reopen() on all existing Appenders. More... | |
static Appender * | getAppender (const std::string &name) |
Get a pointer to an existing Appender. More... | |
static bool | reopenAll () |
Call reopen() on all existing Appenders. More... | |
OstreamAppender appends LoggingEvents to ostreams.
Definition at line 23 of file OstreamAppender.hh.
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 AppenderSkeleton.
|
virtual |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements AppenderSkeleton.
|
virtual |
Reopens the output destination of this Appender, e.g.
the logfile or TCP socket.
Reimplemented from AppenderSkeleton.
|
protected |
Definition at line 34 of file OstreamAppender.hh.