Add support for JSON structured logging using syslog.

Note that depending on the system, the default syslog buffer
may not be large enough to store all the logging data.
This commit is contained in:
Todd C. Miller
2020-02-17 16:25:18 -07:00
parent 5781a6a4cf
commit 982c003b8d
5 changed files with 269 additions and 176 deletions

View File

@@ -419,7 +419,7 @@ sudo_json_add_value_as_object_v1(struct json_container *json, const char *name,
return sudo_json_add_value_int(json, name, value, true);
}
const char *
char *
sudo_json_get_buf_v1(struct json_container *json)
{
return json->buf;