#include <boost/type_traits/is_same.hpp>
#include <boost/static_assert.hpp>
#include <boost/shared_ptr.hpp>
-#include "../Console/LazyDirectory.hh"
-#include "../Console/Parse.hh"
+#include <senf/Utils/Console/LazyDirectory.hh>
+#include <senf/Utils/Console/Parse.hh>
///////////////////////////////ih.p////////////////////////////////////////
std::ostream & operator<<(std::ostream & os, LogParameters const & pm);
- void senf_console_parse_argument(console::ParseCommandInfo::TokensRange const & tokens,
+ void senf_console_parse_argument(console::ParseCommandInfo::TokensRange const & tokens,
LogParameters & out);
/** \brief Internal: Target registry */
: public senf::singleton<TargetRegistry>
{
public:
- enum Level {
- VERBOSE = senf::log::VERBOSE::value,
- NOTICE = senf::log::NOTICE::value,
- MESSAGE = senf::log::MESSAGE::value,
- IMPORTANT = senf::log::IMPORTANT::value,
- CRITICAL = senf::log::CRITICAL::value,
+ enum Level {
+ VERBOSE = senf::log::VERBOSE::value,
+ NOTICE = senf::log::NOTICE::value,
+ MESSAGE = senf::log::MESSAGE::value,
+ IMPORTANT = senf::log::IMPORTANT::value,
+ CRITICAL = senf::log::CRITICAL::value,
FATAL = senf::log::FATAL::value
};
using senf::singleton<TargetRegistry>::instance;
- void write(StreamBase const & stream, AreaBase const & area, unsigned level,
+ void write(StreamBase const & stream, AreaBase const & area, unsigned level,
std::string const & msg);
void routed();
private:
TargetRegistry();
~TargetRegistry();
-
+
void registerTarget(Target * target, std::string const & name);
void unregisterTarget(Target * target);
console::LazyDirectory consoleDir_;
Targets dynamicTargets_;
-
+
friend class senf::log::Target;
friend class senf::singleton<TargetRegistry>;
};
#ifndef DOXYGEN
- // This code takes the routing target template arguments in any order and sorts them
+ // This code takes the routing target template arguments in any order and sorts them
// by type (Stream, Area and Level).
senf::mpl::rv<0u> RouteParameterCheck_(...);