X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FStatisticsTargets.cc;h=e947200d3984efa3526d45d8788e1d03c762165e;hb=c505c034e5fdc932c02aa3dc3847a5551011d87e;hp=f771789c77aeac005ae9a298c8019a4e57cf30a0;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Utils/StatisticsTargets.cc b/senf/Utils/StatisticsTargets.cc index f771789..e947200 100644 --- a/senf/Utils/StatisticsTargets.cc +++ b/senf/Utils/StatisticsTargets.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2009 +// Copyright (C) 2009 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -57,11 +57,11 @@ namespace { { RegisterStatisticsLogger(); - static void adder(senf::StatisticsBase & stats, + static void adder(senf::StatisticsBase & stats, unsigned rank, senf::console::DirectoryNode & dir); - static void consoleCreate(senf::StatisticsBase & stats, + static void consoleCreate(senf::StatisticsBase & stats, unsigned rank, std::string const & prefix); }; @@ -79,12 +79,13 @@ prefix_ void RegisterStatisticsLogger::adder(senf::StatisticsBase & stats, senf::console::DirectoryNode & dir) { namespace kw = senf::console::kw; - - dir.add("logger", boost::function( - boost::bind(&consoleCreate, boost::ref(stats), rank, _1))) - .arg("prefix","Optional prefix string to add to each log message", - kw::default_value = "") - .doc("Send log messages to statistics log stream"); + namespace fty = senf::console::factory; + + dir.add("logger", fty::Command( + boost::bind(&consoleCreate, boost::ref(stats), rank, _1)) + .arg("prefix","Optional prefix string to add to each log message", + kw::default_value = "") + .doc("Send log messages to statistics log stream") ); } prefix_ void RegisterStatisticsLogger::consoleCreate(senf::StatisticsBase & stats,