From 08a5c823d5bc4b6b6268315321b31d508fd076e2 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 24 Jul 2026 04:41:23 -0600 Subject: [PATCH] refactor(log): Use CLEF for JSON logs Use Compact Log Event Format (CLEF) for JSON logs along with custom properties. --- cfddns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfddns.sh b/cfddns.sh index 0419c4c..b849d70 100644 --- a/cfddns.sh +++ b/cfddns.sh @@ -131,7 +131,7 @@ writeJsonLog() { --arg message "$1" \ --arg operation "${4:-UNSPECIFIED}" \ --arg code "${5:-0}" \ - '{"timestamp":$timestamp, "hostname":$hostname, "programName":$pName, "pid":$pid, "level":$level, "status":$status, "message":$message, "operation":$operation, "code":$code}' \ + '{"@t":$timestamp, "@m":$message, "@l":$level, "hostname":$hostname, "programName":$pName, "pid":$pid, "status":$status, "operation":$operation, "code":$code}' \ )" printf "%s\n" "$JSON_PROPS" >>"$logFile"