X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FLogger%2FSyslogUDPTarget.hh;h=e978951e660aeb3047b35813864a582a25596bcf;hb=84f14a42f9993e186c7897ce0db021300e0a2d48;hp=a11f84cfe95453ca9543f54ad84b3c176f41e82d;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Utils/Logger/SyslogUDPTarget.hh b/senf/Utils/Logger/SyslogUDPTarget.hh index a11f84c..e978951 100644 --- a/senf/Utils/Logger/SyslogUDPTarget.hh +++ b/senf/Utils/Logger/SyslogUDPTarget.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 @@ -43,7 +43,7 @@ namespace log { /** \brief Log target writing UDP syslog packets - The SyslogUDPTarget will send all %log messages directly via UDP to a target host. This + The SyslogUDPTarget will send all %log messages directly via UDP to a target host. This host should have a syslog daemon or relay running. The protocol is defined in RFC-3164. @@ -57,7 +57,7 @@ namespace log { Valid facility values are 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, @@ -122,9 +122,9 @@ namespace log { void syslog(bool enabled=true); ///< Set syslog format private: - void init(); - void v_write(time_type timestamp, std::string const & stream, - std::string const & area, unsigned level, + void init(); + void v_write(time_type timestamp, std::string const & stream, + std::string const & area, unsigned level, std::string const & message); void consoleFormat(std::ostream & os); @@ -138,7 +138,7 @@ namespace log { bool syslogFormat_; public: - enum LogFacility { + enum LogFacility { AUTHPRIV = LOG_AUTHPRIV, CRON = LOG_CRON, DAEMON = LOG_DAEMON,