Fix dircopy for SCons V0.96.1
[senf.git] / Utils / Logger.hh
index ef649fc..c766392 100644 (file)
@@ -1,3 +1,5 @@
+// $Id$
+//
 // Copyright (C) 2007
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
 ///////////////////////////////hh.p////////////////////////////////////////
 
 namespace senf {
+namespace log {
 
 #   ifndef _senf_LOG_STREAM
 #     define _senf_LOG_STREAM std::cerr
@@ -179,7 +182,7 @@ namespace senf {
 
         \hideinitializer
      */
-#   define SENF_LOG_DEF_AREA(area)
+#   define SENF_LOG_DEF_AREA(area) struct area {}
 
     /** \brief Define log stream
 
@@ -188,7 +191,7 @@ namespace senf {
 
         \hideinitializer
      */
-#   define SENF_LOG_DEF_STREAM(stream)
+#   define SENF_LOG_DEF_STREAM(stream) struct stream {}
 
     /** \brief Define log parameter alias
 
@@ -197,11 +200,16 @@ namespace senf {
 
         \hideinitializer
      */
-#   define SENF_LOG_DEF_ALIAS(alias,args)
+#   define SENF_LOG_DEF_ALIAS(alias,args) struct alias {}
 
     /// @}
 
-}
+    enum Level { VERBOSE, NOTICE, MESSAGE, IMPORTANT, CRITICAL };
+    
+    SENF_LOG_DEF_STREAM(Debug);
+    SENF_LOG_DEF_AREA(DefaultArea);
+
+}}
 
 ///////////////////////////////hh.e////////////////////////////////////////
 //#include "Logger.cci"
@@ -217,4 +225,5 @@ namespace senf {
 // indent-tabs-mode: nil
 // ispell-local-dictionary: "american"
 // compile-command: "scons -u test"
+// comment-column: 40
 // End: