Loading...
Searching...
No Matches
AbortAppender.hh
Go to the documentation of this file.
/*
* AbortAppender.hh
*
* Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2002, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4SHIB_ABORTAPPENDER_HH
#define _LOG4SHIB_ABORTAPPENDER_HH
#include <log4shib/Portability.hh>
#include <log4shib/AppenderSkeleton.hh>
namespace log4shib {
class LOG4SHIB_EXPORT AbortAppender : public AppenderSkeleton {
public:
AbortAppender(const std::string& name);
virtual ~AbortAppender();
virtual bool reopen();
virtual void close();
virtual bool requiresLayout() const;
virtual void setLayout(Layout* layout);
protected:
virtual void _append(const LoggingEvent& event);
};
}
#endif // _LOG4SHIB_ABORTAPPENDER_HH
AppenderSkeleton.hh
LOG4SHIB_EXPORT
#define LOG4SHIB_EXPORT
Definition Export.hh:11
Portability.hh
log4shib::AbortAppender::setLayout
virtual void setLayout(Layout *layout)
Set the Layout for this appender.
Definition AbortAppender.cpp:40
log4shib::AbortAppender::_append
virtual void _append(const LoggingEvent &event)
Log in Appender specific way.
Definition AbortAppender.cpp:28
log4shib::AbortAppender::reopen
virtual bool reopen()
Reopens the output destination of this Appender, e.g.
Definition AbortAppender.cpp:32
log4shib::AbortAppender::AbortAppender
AbortAppender(const std::string &name)
Definition AbortAppender.cpp:16
log4shib::AbortAppender::close
virtual void close()
Release any resources allocated within the appender such as file handles, network connections,...
Definition AbortAppender.cpp:24
log4shib::AbortAppender::requiresLayout
virtual bool requiresLayout() const
The AbortAppender does not layout.
Definition AbortAppender.cpp:36
log4shib::AppenderSkeleton::AppenderSkeleton
AppenderSkeleton(const std::string &name)
Constructor for AppenderSkeleton.
Definition AppenderSkeleton.cpp:15
log4shib::Layout
Extend this abstract class to create your own log layout format.
Definition Layout.hh:22
log4shib
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
log4shib::LoggingEvent
The internal representation of logging events.
Definition LoggingEvent.hh:32