X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FLogger%2FSyslogTarget.hh;h=03032b112e23a695d46fea3fb43cf8df56f54111;hb=4101c2b818ec67e7469ebb44f030eed2185c4ab0;hp=eeebbb93da9d9b7dc8072c414b49d45d1ae127d8;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Utils/Logger/SyslogTarget.hh b/senf/Utils/Logger/SyslogTarget.hh index eeebbb9..03032b1 100644 --- a/senf/Utils/Logger/SyslogTarget.hh +++ b/senf/Utils/Logger/SyslogTarget.hh @@ -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 @@ -32,14 +32,14 @@ #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. @@ -52,7 +52,7 @@ namespace log { \endcode Valid facility values (taken from man 3 syslog): - \par "" + \par "" LOG_AUTHPRIV, LOG_CRON, LOG_DAEMON, LOG_FTP, LOG_KERN, LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5, LOG_LOCAL6, @@ -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, @@ -130,7 +130,7 @@ namespace log { }} -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #include "SyslogTarget.cci" //#include "SyslogTarget.ct" //#include "SyslogTarget.cti"