// $Id$
//
-// Copyright (C) 2009
+// Copyright (C) 2009
// Fraunhofer Institute for Open Communication Systems (FOKUS)
// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
{
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);
};
senf::console::DirectoryNode & dir)
{
namespace kw = senf::console::kw;
-
- dir.add("logger", boost::function<void (std::string const &)>(
- 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<void (std::string const &)>(
+ 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,