common: add --log-jsonl (#28437)

* common: add --log-jsonl

* rename unknown to none
This commit is contained in:
Xuan-Son Nguyen
2026-09-06 08:21:22 +02:00
committed by GitHub
parent c457e3bf7f
commit 7620399f58
6 changed files with 54 additions and 4 deletions
+1
View File
@@ -91,6 +91,7 @@ void common_log_set_file (struct common_log * log, const char * file); // n
void common_log_set_colors (struct common_log * log, log_colors colors); // not thread-safe
void common_log_set_prefix (struct common_log * log, bool prefix); // whether to output prefix to each log
void common_log_set_timestamps(struct common_log * log, bool timestamps); // whether to output timestamps in the prefix
void common_log_set_jsonl (struct common_log * log, bool jsonl); // print each log as a JSON object on one line, not thread-safe
void common_log_flush (struct common_log * log); // flush all pending log messages
// helper macros for logging