How it works...
Redis has four log levels from low to high: debug, verbose, notice, and warning. Only messages whose level is equal to or above the configured log level will be appended to the log. For example, if loglevel is set to verbose, only verbose, notice, and warning messages will be found in the log. The lower log level we set, the more messages we see in the log.
In this example, we set the log level to debug on the master server and one of the Sentinels, although this is not necessary for the production environment because the debug level will print all log messages. The default log level notice is enough most of the time, unless you need more logs to debug. The logfile directive controls the output file location of the logs. If ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access