$processors
$processors : callable[]
Sends the message to a Redis Pub/Sub channel using PUBLISH
usage example:
$log = new Logger('application'); $redis = new RedisPubSubHandler(new Predis\Client("tcp://localhost:6379"), "logs", Logger::WARNING); $log->pushHandler($redis);
$processors : callable[]
$formatter : ?\Monolog\Formatter\FormatterInterface
$level : int
$bubble : bool
$redisClient : \Predis\Client<\Predis\Client>|\Redis
$channelKey : string
__construct(\Predis\Client<\Predis\Client>|\Redis $redis, string $key, mixed $level = Logger::DEBUG, bool $bubble = true) : mixed
\Predis\Client<\Predis\Client>|\Redis | $redis | The redis instance |
string | $key | The channel key to publish records to |
mixed | $level | |
bool | $bubble |