Setup client loggingΒΆ

To setup logging for debugging inside the client during development you can add this as an example to your own code to enable DEBUG logging when using the library.

import logging

from rediscluster import RedisCluster

logger = logging.getLogger('rediscluster')
logger.propagate = True

Note that this logging is not recommended to be used inside production as it can cause a performance drain and a slowdown of your client.