mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
first pass at JSON logging implementation
This commit is contained in:
committed by
Felipe Zimmerle
parent
4eb095ad25
commit
7b2ca1617e
13
apache2/msc_logging_json.h
Normal file
13
apache2/msc_logging_json.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <yajl/yajl_gen.h>
|
||||
|
||||
#define yajl_string(g, s) yajl_gen_string(g, (const unsigned char *)s, strlen(s))
|
||||
|
||||
#define yajl_kv_null(g, k) yajl_string(g, k); yajl_gen_null(g)
|
||||
|
||||
#define yajl_kv_int(g, k, v) yajl_string(g, k); yajl_gen_integer(g, v)
|
||||
|
||||
#define yajl_kv_string(g, k, v) yajl_string(g, k); yajl_string(g, v)
|
||||
|
||||
#define yajl_kv_bool(g, k, v) yajl_string(g, k); yajl_gen_bool(g, v)
|
Reference in New Issue
Block a user