added test case for yp2::filter::Log, added time stamping inside log filter, added...
[metaproxy-moved-to-github.git] / src / filter_log.hpp
1 /* $Id: filter_log.hpp,v 1.5 2005-10-19 22:45:59 marc Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #ifndef FILTER_LOG_HPP
8 #define FILTER_LOG_HPP
9
10 #include <stdexcept>
11 #include <vector>
12
13 #include "filter.hpp"
14
15 #include <boost/thread/mutex.hpp>
16
17
18 namespace yp2 {
19     namespace filter {
20         class Log : public Base {
21         public:
22             Log();
23             void process(yp2::Package & package) const;       
24         private:
25             /// static mutex to lock Ostream during logging operation
26             static boost::mutex m_log_mutex;
27         };
28     }
29 }
30
31 #endif
32 /*
33  * Local variables:
34  * c-basic-offset: 4
35  * indent-tabs-mode: nil
36  * c-file-style: "stroustrup"
37  * End:
38  * vim: shiftwidth=4 tabstop=8 expandtab
39  */