/usr/include/log4cpp/BufferingAppender.hh is in liblog4cpp5-dev 1.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #if !defined(h_ebd0ee89_622d_4af1_9a9d_d0e057debe86)
#define h_ebd0ee89_622d_4af1_9a9d_d0e057debe86
#include <log4cpp/LayoutAppender.hh>
#include <log4cpp/TriggeringEventEvaluator.hh>
#include <list>
#include <memory>
namespace log4cpp
{
class LOG4CPP_EXPORT BufferingAppender : public LayoutAppender
{
public:
BufferingAppender(const std::string name, unsigned long max_size, std::auto_ptr<Appender> sink,
std::auto_ptr<TriggeringEventEvaluator> evaluator);
virtual void close() { sink_->close(); }
bool getLossy() const { return lossy_; }
void setLossy(bool lossy) { lossy_ = lossy; }
protected:
virtual void _append(const LoggingEvent& event);
private:
typedef std::list<LoggingEvent> queue_t;
queue_t queue_;
unsigned long max_size_;
std::auto_ptr<Appender> sink_;
std::auto_ptr<TriggeringEventEvaluator> evaluator_;
bool lossy_;
void dump();
};
}
#endif // h_ebd0ee89_622d_4af1_9a9d_d0e057debe86
|