Packets: extended description of bad_cast exception in Packet.as()
[senf.git] / senf / Utils / Logger / SyslogTarget.hh
index eeebbb9..2d2c92a 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2008 
+// Copyright (C) 2008
 // Fraunhofer Institute for Open Communication Systems (FOKUS)
 // Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 #include "Target.hh"
 
 //#include "SyslogTarget.mpp"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
 namespace senf {
 
     namespace console { class DirectoryNode; }
 
 namespace log {
-    
+
     /** \brief Log target writing to the syslog
 
-        The SyslogTarget will send all log messages to the syslog at the given facility.
+        The SyslogTarget will send all %log messages to the syslog at the given facility.
 
         \code
         senf::log::SyslogTarget syslog;
@@ -52,7 +52,7 @@ namespace log {
         \endcode
 
         Valid facility values (taken from <tt>man 3 syslog</tt>):
-        \par "" 
+        \par ""
            <tt>LOG_AUTHPRIV</tt>, <tt>LOG_CRON</tt>, <tt>LOG_DAEMON</tt>, <tt>LOG_FTP</tt>,
            <tt>LOG_KERN</tt>, <tt>LOG_LOCAL0</tt>, <tt>LOG_LOCAL1</tt>, <tt>LOG_LOCAL2</tt>,
            <tt>LOG_LOCAL3</tt>, <tt>LOG_LOCAL4</tt>, <tt>LOG_LOCAL5</tt>, <tt>LOG_LOCAL6</tt>,
@@ -74,30 +74,30 @@ namespace log {
 
         \ingroup targets
      */
-    class SyslogTarget 
+    class SyslogTarget
         : public Target
     {
     public:
-        ///////////////////////////////////////////////////////////////////////////
+        //-////////////////////////////////////////////////////////////////////////
         ///\name Structors and default members
-        ///@{
+        //\{
 
         explicit SyslogTarget(int facility = LOG_USER);
 
-        ///@}
-        ///////////////////////////////////////////////////////////////////////////
+        //\}
+        //-////////////////////////////////////////////////////////////////////////
 
     private:
-        void v_write(time_type timestamp, std::string const & stream, 
-                     std::string const & area, unsigned level, 
+        void v_write(time_type timestamp, std::string const & stream,
+                     std::string const & area, unsigned level,
                      std::string const & message);
 
         int facility_;
 
     public:
         static int const LEVELMAP[8];
-        
-        enum LogFacility { 
+
+        enum LogFacility {
             AUTHPRIV = LOG_AUTHPRIV,
             CRON = LOG_CRON,
             DAEMON = LOG_DAEMON,
@@ -122,7 +122,7 @@ namespace log {
     private:
         struct RegisterConsole {
             RegisterConsole();
-            static boost::shared_ptr<senf::console::DirectoryNode> create(
+            static boost::shared_ptr<console::DirectoryNode> create(
                 LogFacility facility);
             static RegisterConsole instance;
         };
@@ -130,7 +130,7 @@ namespace log {
 
 }}
 
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #include "SyslogTarget.cci"
 //#include "SyslogTarget.ct"
 //#include "SyslogTarget.cti"