Skip to content

Commit

Permalink
Document log format configs in valkey.conf (#1233)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
azuredream authored Oct 29, 2024
1 parent c21f1dc commit 8ee7a58
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions valkey.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ee7a58

Please sign in to comment.