Log filter has alternative constructor with custom msg
[metaproxy-moved-to-github.git] / src / filter_log.cpp
index 2cc54a4..1e21fb7 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: filter_log.cpp,v 1.6 2005-10-25 11:48:30 adam Exp $
+/* $Id: filter_log.cpp,v 1.7 2005-10-25 16:01:36 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -21,6 +21,7 @@
 
 
 yp2::filter::Log::Log() {}
+yp2::filter::Log::Log(const std::string &msg) : m_msg(msg) {}
 
 void yp2::filter::Log::process(Package &package) const {
 
@@ -79,11 +80,6 @@ void yp2::filter::Log::process(Package &package) const {
     }
 }
 
-void yp2::filter::Log::set_prefix(const std::string &msg)
-{
-    m_msg = msg;
-}
-
 // defining and initializing static members
 boost::mutex yp2::filter::Log::m_log_mutex;