X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FLogger%2FSyslogTarget.hh;h=76508d91682264140d614a4772a9c047d5c26bd0;hb=9cb871b939efe93e35dd96808d25089399acfc46;hp=eeebbb93da9d9b7dc8072c414b49d45d1ae127d8;hpb=3a43b572a2c0028b353d47e86fa7546633d6e2cf;p=senf.git diff --git a/senf/Utils/Logger/SyslogTarget.hh b/senf/Utils/Logger/SyslogTarget.hh index eeebbb9..76508d9 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 @@ -39,7 +39,7 @@ 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,7 +74,7 @@ namespace log { \ingroup targets */ - class SyslogTarget + class SyslogTarget : public Target { public: @@ -88,16 +88,16 @@ namespace log { /////////////////////////////////////////////////////////////////////////// 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,