X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FTarget.ih;h=a0838719b46757d5f7f93247aa1e9af738c34bc7;hb=1f9ac79c1c2dfbb7abe22e1c816ca43d6582102b;hp=d80902ea41c8ad8c59100f3e8c1bd86399930c09;hpb=f32fbba56a55712998d251e914eb6e9ad95890e3;p=senf.git diff --git a/Utils/Logger/Target.ih b/Utils/Logger/Target.ih index d80902e..a083871 100644 --- a/Utils/Logger/Target.ih +++ b/Utils/Logger/Target.ih @@ -23,12 +23,11 @@ /** \file \brief Target internal header */ -#ifndef IH_Target_ -#define IH_Target_ 1 +#ifndef IH_SENF_Utils_Logger_Target_ +#define IH_SENF_Utils_Logger_Target_ 1 // Custom includes #include -#include #include #include @@ -46,9 +45,7 @@ namespace detail { using senf::singleton::instance; void write(StreamBase const & stream, AreaBase const & area, unsigned level, - std::string msg); - - void timeSource(std::auto_ptr source); + std::string const & msg); void routed(); bool fallbackRouting(); @@ -61,7 +58,6 @@ namespace detail { typedef std::set Targets; Targets targets_; - boost::scoped_ptr timeSource_; bool fallbackRouting_; @@ -71,7 +67,7 @@ namespace detail { /** \brief Internal: Write log message */ template - void write(std::string msg); + void write(std::string const & msg); #ifndef DOXYGEN @@ -87,7 +83,7 @@ namespace detail { // For g++ 4.0 (at least) we need to provide the fully scoped name for this default value. // no idea why. It works without the scope in 4.1 template < class T, class A2, class A1, - unsigned type = SENF_MPL_RV( senf::Log::detail::RouteParameterCheck_(static_cast(0)) ) > + unsigned type = SENF_MPL_RV( senf::log::detail::RouteParameterCheck_(static_cast(0)) ) > struct RouteParameters {}; @@ -113,7 +109,7 @@ namespace detail { : public RouteParameters { typedef RouteParameters base; - BOOST_STATIC_ASSERT( boost::is_same::value ); + BOOST_STATIC_ASSERT(( boost::is_same::value )); typedef T Stream; }; @@ -122,7 +118,7 @@ namespace detail { : public RouteParameters { typedef RouteParameters base; - BOOST_STATIC_ASSERT( boost::is_same::value ); + BOOST_STATIC_ASSERT(( boost::is_same::value )); typedef T Area; }; @@ -131,7 +127,7 @@ namespace detail { : public RouteParameters { typedef RouteParameters base; - BOOST_STATIC_ASSERT( boost::is_same::value ); + BOOST_STATIC_ASSERT(( boost::is_same::value )); typedef typename T::SENFLogArea Area; }; @@ -140,7 +136,7 @@ namespace detail { : public RouteParameters { typedef RouteParameters base; - BOOST_STATIC_ASSERT( boost::is_same::value ); + BOOST_STATIC_ASSERT(( boost::is_same::value )); typedef T Level; };