Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 555 Bytes

logging.rst

File metadata and controls

17 lines (11 loc) · 555 Bytes

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

logging.basicConfig()
logger = logging.getLogger('rediscluster')
logger.setLevel(logging.DEBUG)
logger.propagate = True

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