X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FLogger%2FTarget.cc;h=1069656f4624aad18a514b68d2b29a3f0dd69362;hb=21be434729b552e31b856b2f42fc978062d0dd55;hp=a69327903e749306b43d115d926c779030134e88;hpb=f13780e9e4da7df981d6f6542fbdc714beb34765;p=senf.git diff --git a/senf/Utils/Logger/Target.cc b/senf/Utils/Logger/Target.cc index a693279..1069656 100644 --- a/senf/Utils/Logger/Target.cc +++ b/senf/Utils/Logger/Target.cc @@ -60,7 +60,7 @@ prefix_ senf::log::Target::Target(std::string const & name) detail::TargetRegistry::instance().registerTarget(this, name); consoleDir_() - .add("list", fty::BoundCommand(this, &Target::consoleList) + .add("list", fty::Command(this, &Target::consoleList) .doc("Show routing table\n" "\n" "Columns:\n" @@ -72,7 +72,7 @@ prefix_ senf::log::Target::Target(std::string const & name) " verbose, notice, message, important, critical, fatal\n" " ACTION action to take: accept or reject") ); consoleDir_() - .add("route", fty::BoundCommand(this, &Target::consoleRoute) + .add("route", fty::Command(this, &Target::consoleRoute) .arg("index", "index at which to insert new rule") .arg("parameters", "log parameters. The log parameters select the log stream, log area\n" " and log level. You may specify any combination of these parameterse\n" @@ -108,11 +108,11 @@ prefix_ senf::log::Target::Target(std::string const & name) .arg("action", kw::default_value=ACCEPT) ); consoleDir_() .add("unroute", - fty::BoundCommand(this, static_cast(&Target::unroute)) + fty::Command(this, static_cast(&Target::unroute)) .arg("index", "index of routing entry to remove") .overloadDoc("Remove routing entry with the given index") ); consoleDir_() - .add("unroute", fty::BoundCommand(this, &Target::consoleUnroute) + .add("unroute", fty::Command(this, &Target::consoleUnroute) .arg("parameters", "log parameters. The log parameters select the log stream, log area\n" " and log level. You may specify any combination of these parameterse\n" " in any order. Use the '/sys/log/stream' and '/sys/log/areas' commands\n" @@ -122,7 +122,7 @@ prefix_ senf::log::Target::Target(std::string const & name) kw::default_value=ACCEPT) .overloadDoc("Remove the routing entry matching the specified arguments.") ); consoleDir_() - .add("flush", fty::BoundCommand(this, &Target::flush) + .add("flush", fty::Command(this, &Target::flush) .doc("Remove all routing entries clearing the routing table. This will disable all\n" "logging output on this target.") ); } @@ -402,13 +402,13 @@ prefix_ senf::log::detail::TargetRegistry::TargetRegistry() console::sysdir().add("log", consoleDir_()); consoleDir_() - .add("areas", fty::BoundCommand(this, &TargetRegistry::consoleAreas) + .add("areas", fty::Command(this, &TargetRegistry::consoleAreas) .doc("List all areas") ); consoleDir_() - .add("streams", fty::BoundCommand(this, &TargetRegistry::consoleStreams) + .add("streams", fty::Command(this, &TargetRegistry::consoleStreams) .doc("List all streams") ); consoleDir_() - .add("message", fty::BoundCommand(this, &TargetRegistry::consoleWrite) + .add("message", fty::Command(this, &TargetRegistry::consoleWrite) .arg("parameters", "log parameters. The log parameters select the log stream, log area\n" " and log level. You may specify any combination of these parameterse\n" " in any order. Use the '/sys/log/stream' and '/sys/log/areas' commands\n" @@ -424,7 +424,7 @@ prefix_ senf::log::detail::TargetRegistry::TargetRegistry() " message (FATAL) \"Program on fire\";\n" " message (VERBOSE senf::log::Debug) \"Debug message\";") ); consoleDir_() - .add("self", fty::BoundCommand(this, &TargetRegistry::consoleSelf) + .add("self", fty::Command(this, &TargetRegistry::consoleSelf) .doc("Get the log directory of the current network client. Example usage:\n" "\n" "Just get the log config directory\n"