Utils/Logger: set defautl compile-time log limit for senf::log::Debug to NOTICE
[senf.git] / Utils / Logger / Target.ih
index 115c71e..b0b61d9 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
-// Copyright (C) 2007 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer NETwork research (NET)
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
@@ -27,6 +27,8 @@
 #define IH_Target_ 1
 
 // Custom includes
+#include <memory>
+#include <boost/scoped_ptr.hpp>
 
 ///////////////////////////////ih.p////////////////////////////////////////
 
@@ -44,14 +46,25 @@ namespace detail {
         void write(StreamBase const & stream, AreaBase const & area, unsigned level, 
                    std::string msg);
 
+        void timeSource(std::auto_ptr<TimeSource> source);
+
+        void routed();
+        bool fallbackRouting();
+
     private:
+        TargetRegistry();
+        
         void registerTarget(Target * target);
         void unregisterTarget(Target * target);
 
         typedef std::set<Target *> Targets;
         Targets targets_;
+        boost::scoped_ptr<TimeSource> timeSource_;
+
+        bool fallbackRouting_;
         
         friend class senf::log::Target;
+        friend class senf::singleton<TargetRegistry>;
     };
 
     /** \brief Internal: Write log message */