small documentation fixes
[senf.git] / Utils / Logger / Definitions.hh
index 5e9d5cc..24c32f7 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
 // Copyright (C) 2007 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer NETwork research (NET)
+// 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
@@ -60,6 +60,8 @@ namespace log {
             typedef runtimeLimit_ runtimeLimit;                                                   \
             typedef compileLimit_ compileLimit;                                                   \
             static std::string name() { return instance().v_name(); }                             \
+            unsigned defaultRuntimeLimit() const { return runtimeLimit::value; }                  \
+            using senf::singleton<stream>::instance;                                              \
         private:                                                                                  \
             stream() { init(); }                                                                  \
             friend class senf::singleton<stream>;                                                 \
@@ -70,14 +72,15 @@ namespace log {
         Defines a new log area named \a area. The area is defined as a symbol in the current scope.
 
         \hideinitializer
-        \ingroup logging
      */
 #   define SENF_LOG_DEF_AREA(area) SENF_LOG_DEF_AREA_I(area, ; )
 
     /** \brief Define new default log area for the class
 
-        This command declares the containing class to be it's own default log area. It is such like a
-        combination of \ref SENF_LOG_DEF_AREA and \ref SENF_LOG_DEFAULT_AREA with a twist.
+        This command declares the containing class to be it's own default log area. It is such like
+        a combination of \ref SENF_LOG_DEF_AREA and \ref SENF_LOG_DEFAULT_AREA with a twist.
+
+        \hideinitializer
      */
 #   define SENF_LOG_CLASS_AREA()                                                                  \
         SENF_LOG_DEF_AREA_I(                                                                      \
@@ -104,12 +107,11 @@ namespace log {
             };                                                                                    \
         }
 
-        /** \brief Default global log stream */
-        SENF_LOG_DEF_STREAM(Debug, MESSAGE, DISABLED, DISABLED);
+    /** \brief Default global log stream */
+    SENF_LOG_DEF_STREAM(Debug, MESSAGE, MESSAGE, MESSAGE);
 
-        /** \brief Default global log area */
-        SENF_LOG_DEF_AREA_I(DefaultArea,
-                            std::string v_name() const { return ""; });
+    /** \brief Default global %log area */
+    SENF_LOG_DEF_AREA(DefaultArea);
 
     ///\}
     ///\}