add initRedisHandler method

add method initRedisHandler to facilitate Redis logging