From 8ee7a580254d5600a2af32ac30ce2a103b7d83fb Mon Sep 17 00:00:00 2001
From: zixuan zhao <zhaozixuan67@gmail.com>
Date: Tue, 29 Oct 2024 06:13:30 -0400
Subject: [PATCH] Document log format configs in valkey.conf (#1233)

Add config options for log format and timestamp format introduced by
#1022
Related to #1225

This change adds two new configs into valkey.conf:
log-format
log-timestamp-format

---------

Signed-off-by: azuredream <zhaozixuan67@gmail.com>
---
 valkey.conf | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/valkey.conf b/valkey.conf
index 588746867..7c7b9da43 100644
--- a/valkey.conf
+++ b/valkey.conf
@@ -348,6 +348,23 @@ pidfile /var/run/valkey_6379.pid
 # nothing (nothing is logged)
 loglevel notice
 
+# Specify the logging format.
+# This can be one of:
+#
+# - legacy: the default, traditional log format
+# - logfmt: a structured log format; see https://www.brandur.org/logfmt
+#
+# log-format legacy
+
+# Specify the timestamp format used in logs using 'log-timestamp-format'.
+#
+# - legacy: default format
+# - iso8601: ISO 8601 extended date and time with time zone, on the form
+#   yyyy-mm-ddThh:mm:ss.sss±hh:mm
+# - milliseconds: milliseconds since the epoch
+#
+# log-timestamp-format legacy
+
 # Specify the log file name. Also the empty string can be used to force
 # the server to log on the standard output. Note that if you use standard
 # output for logging but daemonize, logs will be sent to /dev/null