Utils/Logger: Remove dependency on libboost_datetime
[senf.git] / Utils / Logger / IOStreamTarget.hh
index 84e66fc..05f9eee 100644 (file)
@@ -40,11 +40,9 @@ namespace log {
     /** \brief Write %log messages to arbitrary std::ostream
 
         This target will write %log messages to an arbitrary std::ostream in the format
-        <pre>
-        <date> [<area>] <message>
-        </pre>
+        \verbatim <date> [<level>][<area>] <message> \endverbatim
 
-        The \e area will be omitted it it is \c senf::log::DefaultArea.
+        The \e area will be omitted if it is \c senf::log::DefaultArea.
         
         The date formatting is set using the Boost.DateTime date_facet, e.g.:
         \code
@@ -75,16 +73,15 @@ namespace log {
         ///////////////////////////////////////////////////////////////////////////
 
     protected:
-
-    private:
-        void v_write(boost::posix_time::ptime timestamp, std::string const & stream, 
+        void v_write(time_type timestamp, std::string const & stream, 
                      std::string const & area, unsigned level, 
                      std::string const & message);
 
+    private:
         std::ostream & stream_;
+        static char const * const LEVELNAMES_[8];
     };
 
-
 }}
 
 ///////////////////////////////hh.e////////////////////////////////////////