From: g0dil Date: Fri, 3 Oct 2008 08:58:17 +0000 (+0000) Subject: Utils/Logger: SyslogTarget documentation X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=9a074ebd4b82022bfe686b40de8db80927def2b8;p=senf.git Utils/Logger: SyslogTarget documentation git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@924 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Utils/Logger/SyslogTarget.hh b/Utils/Logger/SyslogTarget.hh index bb1aa6c..70cf4e3 100644 --- a/Utils/Logger/SyslogTarget.hh +++ b/Utils/Logger/SyslogTarget.hh @@ -36,15 +36,27 @@ namespace senf { namespace log { + /** \brief Log target writing to the syslog + + The SyslogTarget will send all log messages to the syslog at the given facility. + + Valid facility values (taken from man 3 syslog): + \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, + LOG_LOCAL7, LOG_LPR, LOG_MAIL, LOG_NEWS, + LOG_SYSLOG, LOG_USER, LOG_UUCP + + The default facility is LOG_USER. + + \ingroup targets + */ class SyslogTarget : public Target { public: /////////////////////////////////////////////////////////////////////////// - // Types - - - /////////////////////////////////////////////////////////////////////////// ///\name Structors and default members ///@{ @@ -53,12 +65,11 @@ namespace log { ///@} /////////////////////////////////////////////////////////////////////////// - protected: + private: void v_write(time_type timestamp, std::string const & stream, std::string const & area, unsigned level, std::string const & message); - private: int facility_; static int const LEVELMAP_[8]; };