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"]);
Base Handler class providing the Handler structure.
Logs to a Redis key using rpush.
__construct($redis, $key, $level=Logger::DEBUG, $bubble=true)
write(array $record)
Writes the record down to the log of the implementing handler.
getDefaultFormatter()
Gets the default formatter.FormatterInterface
const DEBUG
Detailed debug information.