X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FLogger%2FTarget.ih;h=024e479b4f662a4913d519e62dc7ea5c0e4f5e85;hb=394ced7000128fef7e753caea1deda8d55dec8e2;hp=4b81e2eecce481234ce496ee985acdb9a2fd6dd6;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Utils/Logger/Target.ih b/senf/Utils/Logger/Target.ih index 4b81e2e..024e479 100644 --- a/senf/Utils/Logger/Target.ih +++ b/senf/Utils/Logger/Target.ih @@ -27,14 +27,17 @@ #define IH_SENF_Utils_Logger_Target_ 1 // Custom includes +#include #include #include #include #include -#include "../Console/LazyDirectory.hh" -#include "../Console/Parse.hh" +#include +#include +#include +#include -///////////////////////////////ih.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace senf { @@ -54,7 +57,7 @@ namespace detail { 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 */ @@ -62,18 +65,18 @@ namespace detail { : public senf::singleton { 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::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(); @@ -86,7 +89,7 @@ namespace detail { private: TargetRegistry(); ~TargetRegistry(); - + void registerTarget(Target * target, std::string const & name); void unregisterTarget(Target * target); @@ -104,7 +107,7 @@ namespace detail { console::LazyDirectory consoleDir_; Targets dynamicTargets_; - + friend class senf::log::Target; friend class senf::singleton; }; @@ -115,7 +118,7 @@ namespace detail { #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_(...); @@ -200,7 +203,7 @@ namespace detail { }}} -///////////////////////////////ih.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #endif