added structure-data doc

This commit is contained in:
Günter Obiltschnig 2018-03-07 07:01:01 +01:00
parent 69588abd71
commit 41cc2a632e
2 changed files with 21 additions and 13 deletions

View File

@ -36,6 +36,13 @@ class Net_API RemoteSyslogChannel: public Poco::Channel
///
/// In addition, RemoteSyslogListener also supports the "old" BSD syslog
/// protocol, as described in RFC 3164.
///
/// RFC 5425 structured data can be passed via the "structured-data"
/// property of the log Message. The content of the "structured-data"
/// property must be correct according to RFC 5425.
///
/// Example:
/// msg.set("structured-data", "[exampleSDID@32473 iut=\"3\" eventSource=\"Application\" eventID=\"1011\"]");
{
public:
static const std::string BSD_TIMEFORMAT;

View File

@ -50,6 +50,7 @@ class Net_API RemoteSyslogListener: public Poco::SplitterChannel
/// - addr: IP address of the host/interface sending the message.
/// - host: host name; only for "new" syslog messages.
/// - app: application name; only for "new" syslog messages.
/// - structured-data: RFC 5424 structured data, or empty if not present.
{
public:
RemoteSyslogListener();