aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-21 01:49:08 +0100
committerFederico Angelilli <code@fedang.net>2024-03-21 01:49:08 +0100
commit97253564c1f00f8ec24f5208a6888f7451e75a9b (patch)
tree15f94428edd4aa3ea4d40d192fdffe8d5003d391 /test.c
parent3d48d8d62349ba4b66dc4bc5c3582486baa872d6 (diff)
Add structured logging with log_value
Diffstat (limited to 'test.c')
-rw-r--r--test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test.c b/test.c
index 5dfb918..7ba027a 100644
--- a/test.c
+++ b/test.c
@@ -33,6 +33,16 @@ int main()
log_trace("ANY_LOG_TRACE = %d = %d", ANY_LOG_TRACE,
any_log_level_from_string(ANY_LOG_TRACE_STRING));
+ // Test any_log_value
+
+ log_value_warn("Hello",
+ "this is a", "string");
+
+ log_value_info("I'll try",
+ "d:this is ", 10,
+ "f:dbl", 20.3333,
+ "p:a", NULL);
+
// Test any_log_format
log_trace("Hello");