X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FLogger%2FSyslogUDPTarget.hh;h=fd14f7a7382d4715bcef7aa886884c1e5e1a5dc7;hb=e9816d699770dea77c989c97ef53bf2266ce7b6b;hp=a11f84cfe95453ca9543f54ad84b3c176f41e82d;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Utils/Logger/SyslogUDPTarget.hh b/senf/Utils/Logger/SyslogUDPTarget.hh index a11f84c..fd14f7a 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 @@ -36,14 +36,14 @@ #include //#include "SyslogUDPTarget.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace senf { 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, @@ -93,20 +93,20 @@ namespace log { : public Target, private detail::LogFormat { public: - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// // Types - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// ///\name Structors and default members - ///@{ + //\{ explicit SyslogUDPTarget(senf::INet4Address const & target, int facility = LOG_USER); explicit SyslogUDPTarget(senf::INet4SocketAddress const & target, int facility = LOG_USER); explicit SyslogUDPTarget(senf::INet6Address const & target, int facility = LOG_USER); explicit SyslogUDPTarget(senf::INet6SocketAddress const & target, int facility = LOG_USER); - ///@} - /////////////////////////////////////////////////////////////////////////// + //\} + //-//////////////////////////////////////////////////////////////////////// using detail::LogFormat::showTime; using detail::LogFormat::showStream; @@ -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, @@ -178,7 +178,7 @@ namespace log { }} -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #include "SyslogUDPTarget.cci" //#include "SyslogUDPTarget.ct" //#include "SyslogUDPTarget.cti"