log4tango::Appender(3) | log4tango | log4tango::Appender(3) |
log4tango::Appender
#include <Appender.hh>
Inherited by log4tango::LayoutAppender.
virtual ~Appender ()
Destructor for Appender. int append (const LoggingEvent
&event)
Log in Appender specific way. virtual bool reopen (void)
Reopens the output destination of this Appender, e.g. virtual void
close (void)=0
Release any resources allocated within the appender such as file handles,
network connections, etc. virtual bool requires_layout (void) const
=0
Check if the appender uses a layout. virtual void set_layout
(Layout *layout=0)=0
Change the layout. const std::string & get_name (void) const
Returns this appender name. 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.
Appender (const std::string &name)
Constructor for Appender. virtual void level_changed
(Level::Value new_level)
Inform an appender that its Logger's logging level has changed. virtual
int _append (const LoggingEvent &event)=0
Log in Appender specific way.
class Logger
Constructor for Appender. Will only be used in getAppender() (and in derived classes of course).
Parameters
Destructor for Appender.
Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.
Parameters
Implemented in log4tango::FileAppender, log4tango::OstreamAppender, and log4tango::RollingFileAppender.
Log in Appender specific way. Returns -1 on error, 0 otherwise.
Parameters
Release any resources allocated within the appender such as file handles, network connections, etc.
Implemented in log4tango::OstreamAppender, and log4tango::FileAppender.
Returns this appender name.
Check if the appender is valid (for instance the underlying connection is ok) This default implementation always return true. Overload to define your own behaviour.
Returns
Reimplemented in log4tango::FileAppender.
Inform an appender that its Logger's logging level has changed. The default implementation does nothing.
Parameters
Reopens the output destination of this Appender, e.g. the logfile or TCP socket.
Returns
Reimplemented in log4tango::OstreamAppender, and log4tango::FileAppender.
Check if the appender uses a layout.
Returns
Implemented in log4tango::LayoutAppender.
Change the layout.
Implemented in log4tango::LayoutAppender.
Generated automatically by Doxygen for log4tango from the source code.
Fri Nov 11 2022 | Version 5.0.2 |