41 if (!(($redis instanceof \Predis\Client) || ($redis instanceof \Redis))) {
42 throw new \InvalidArgumentException(
'Predis\Client or Redis instance required');
45 $this->redisClient = $redis;
46 $this->redisKey = $key;
51 protected function write(array $record)
53 $this->redisClient->rpush($this->redisKey, $record[
"formatted"]);
const DEBUG
Detailed debug information.
Base Handler class providing the Handler structure.
Logs to a Redis key using rpush.
__construct($redis, $key, $level=Logger::DEBUG, $bubble=true)