syslog call for structured data

Anthony Pankov ap00 at mail.ru
Wed May 27 19:15:53 UTC 2020


> On Wed, May 27, 2020 at 11:44:17AM +0300, Anthony Pankov via freebsd-hackers wrote:
>> Greetings,
>> 
>> I  just  wondering  is there libc function that support syslog rfc5424
>> structured data?
>> 
>> There  must  be  something  like  syslogsd(int  priority,  const  char
>> *msgstr, ...) where ... is
>>  name1, value1, name2, value2, ...,  nameN, valueN

> Doesn't the classic syslog(3) do what you're expecting?  Maybe I'm
> missing something.
>
> https://www.freebsd.org/cgi/man.cgi?query=syslog&sektion=3&manpath=freebsd-release-ports


rfc5424   introduce  structured data (SD) as a list of name-value pairs
(https://tools.ietf.org/html/rfc5424#section-6.3).

I'm interesting in standard way to make log line such as
[useract at 12345 user="James" action="door open"]


-- 
С уважением,
 Anthony                          mailto:ap00 at mail.ru



More information about the freebsd-hackers mailing list