X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_log.hpp;h=58cb266e4adb01aa370682510bef1bf93e9ef484;hb=2925d7556b673d7557603adc7f5b61057de438cf;hp=c589e34ab9c22357f52d98e7fc69d31117781ae7;hpb=ec40d94aeb48a31ebe0ac8c9b9457f28a2d54fcc;p=metaproxy-moved-to-github.git diff --git a/src/filter_log.hpp b/src/filter_log.hpp index c589e34..58cb266 100644 --- a/src/filter_log.hpp +++ b/src/filter_log.hpp @@ -1,4 +1,4 @@ -/* $Id: filter_log.hpp,v 1.4 2005-10-19 21:44:01 marc Exp $ +/* $Id: filter_log.hpp,v 1.8 2005-10-29 22:23:36 marc Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -12,12 +12,23 @@ #include "filter.hpp" +#include + + namespace yp2 { namespace filter { class Log : public Base { public: + Log(const std::string &msg); Log(); void process(yp2::Package & package) const; + const std::string type() const { + return "Log"; + }; + private: + /// static mutex to lock Ostream during logging operation + static boost::mutex m_log_mutex; + std::string m_msg; }; } }