X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FSyslogUDPTarget.hh;h=71732d5ae9fa8269f973f6c751c5a77193b93dd3;hb=da4da33fc6ce9f6140d4bfb2ff8266f676e7683b;hp=25bb8930c0657d9248206a1e7dbd4f4c7739b645;hpb=383bdfaf22128c50ffa5c692e7f5242b110c0183;p=senf.git diff --git a/Utils/Logger/SyslogUDPTarget.hh b/Utils/Logger/SyslogUDPTarget.hh index 25bb893..71732d5 100644 --- a/Utils/Logger/SyslogUDPTarget.hh +++ b/Utils/Logger/SyslogUDPTarget.hh @@ -43,9 +43,9 @@ namespace log { /** \brief Log target writing UDP syslog packets - 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. + 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. This log target has some important benefits: @@ -66,7 +66,7 @@ namespace log { the default facility is LOG_USER - The SENF log levels are mapped to syslog levels in the following way: + The SENF %log levels are mapped to syslog levels in the following way: @@ -78,8 +78,8 @@ namespace log {
senf::log::VERBOSE \c LOG_DEBUG
\note Since the UDP syslog packets are limited to 1024 characters and there must be some - space left so a relay may optionally add a timestamp and hostname section, the log - messages are split after 896 characters. Additionally the log messages are split at each + space left so a relay may optionally add a timestamp and hostname section, the %log + messages are split after 896 characters. Additionally the %log messages are split at each newline char since non-printable characters are not allowed. \implementation The RFC only \e recommends the exact message format. This allows us to @@ -119,7 +119,7 @@ namespace log { /**< When syslog format is disabled, messages are not formated as valid syslog messages but sent using plain UDP. */ - void syslog(bool enabled=true); /// Set syslog format + void syslog(bool enabled=true); ///< Set syslog format private: void init();