syslog plugin: Copy the BUFFER_ADD() macro from src/utils_format_json.c.
authorFlorian Forster <octo@collectd.org>
Sat, 25 Feb 2012 16:55:36 +0000 (17:55 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 25 Feb 2012 16:55:36 +0000 (17:55 +0100)
commit09a1be15c27716ea984039b55ceddba3a0ef388b
tree4d2f935241faef5f78294a626f8171781e3e6c7e
parent02af2c25b7bff96610cd5c10af928a040f3c15f3
syslog plugin: Copy the BUFFER_ADD() macro from src/utils_format_json.c.

Also determine the string representation of the severity in the switch
block, since it's much easier to read than the ?:-cascade.

Change-Id: Ieb5467633db3e06e1fad6a60b5a19fd7708e2002
src/syslog.c