Utils/Logger: Honor (default) runtime limit in fallback logging state
[senf.git] / Utils / Logger / Target.hh
index 0fec6a5..7c999b8 100644 (file)
@@ -35,6 +35,7 @@
 #include "../mpl.hh"
 #include "StreamRegistry.hh"
 #include "AreaRegistry.hh"
+#include "../Exception.hh"
 
 //#include "Target.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
@@ -97,10 +98,10 @@ namespace log {
 
         The different object representations are:
         \li The \e streams is statically represented by it's name, which is the name of a class
-            defined with \ref SENF_LOG_DEF_STREAM. The dynamic representation is a string
+            defined with \ref SENF_LOG_DEFINE_STREAM. The dynamic representation is a string
             representation of this name.
         \li The \e area is statically represented by it's name, which again is the name of a class
-            defined with \ref SENF_LOG_DEF_STREAM. The dynamic representation again is a string
+            defined with \ref SENF_LOG_DEFINE_STREAM. The dynamic representation again is a string
             representation of this class's name. The dynamic representation represents an absent
             area with the empty string.
         \li The \e level is statically represented by a level class from \ref
@@ -341,14 +342,14 @@ namespace log {
         ///\}
 
         /** \brief Exception: Invalid stream */
-        struct InvalidStreamException : public std::exception
-        { virtual char const * what() const throw() 
-                { return "senf::log::Target::InvalidStreamException"; } };
+        struct InvalidStreamException : public senf::Exception
+        { InvalidStreamException() 
+              : senf::Exception("senf::log::Target::InvalidStreamException"){} };
         
         /** \brief Exception: Invalid area */
-        struct InvalidAreaException : public std::exception
-        { virtual char const * what() const throw() 
-                { return "senf::log::Target::InvalidAreaException"; } };
+        struct InvalidAreaException : public senf::Exception
+        { InvalidAreaException() 
+              : senf::Exception("senf::log::Target::InvalidAreaException"){} };
 
         iterator begin() const;         ///< Iterator to beginning of routing table
         iterator end() const;           ///< Iterator past the end of routing table
@@ -427,9 +428,9 @@ namespace log {
         virtual boost::posix_time::ptime operator()() const;
     };
 
-    /** \brief Change log message time source
+    /** \brief Change %log message time source
 
-        Set the log message time source to \a source. The logging library will take ownership of \e
+        Set the %log message time source to \a source. The logging library will take ownership of \e
         source and will take care to free it, if necessary.
 
         Since the time source class will in almost all cases be default constructible, see the
@@ -439,9 +440,9 @@ namespace log {
      */
     void timeSource(std::auto_ptr<TimeSource> source);
 
-    /** \brief Change log message time source
+    /** \brief Change %log message time source
 
-        Set the log message time source to (an instance of) \a Source.  \a Source must be default
+        Set the %log message time source to (an instance of) \a Source.  \a Source must be default
         constructible, otherwise use the non-template senf::log::timeSource() overload.
 
         \ingroup config