X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_log.hpp;h=e2af7c0fea2cca2ae5234bb08ed720f7d3295f47;hb=349c7da1d51fc13c35a03c0be3fd6b2b63af8875;hp=e7cdf4bbb028024c47e76e1cddf52ed101233fbd;hpb=f82b19f2b93707657fee804bd1242f2548d51ada;p=metaproxy-moved-to-github.git diff --git a/src/filter_log.hpp b/src/filter_log.hpp index e7cdf4b..e2af7c0 100644 --- a/src/filter_log.hpp +++ b/src/filter_log.hpp @@ -1,4 +1,4 @@ -/* $Id: filter_log.hpp,v 1.3 2005-10-15 14:09:09 adam Exp $ +/* $Id: filter_log.hpp,v 1.7 2005-10-25 16:01:36 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -12,12 +12,20 @@ #include "filter.hpp" +#include + + namespace yp2 { namespace filter { class Log : public Base { public: - Log::Log(); + Log(const std::string &msg); + Log(); void process(yp2::Package & package) const; + private: + /// static mutex to lock Ostream during logging operation + static boost::mutex m_log_mutex; + std::string m_msg; }; } }