$processors
$processors : callable[]
Logs to a Redis key using rpush
usage example:
$log = new Logger('application'); $redis = new RedisHandler(new Predis\Client("tcp://localhost:6379"), "logs", "prod"); $log->pushHandler($redis);
$processors : callable[]
$formatter : ?\Monolog\Formatter\FormatterInterface
$level : int
$bubble : bool
$capSize : int
$redisClient : \Predis\Client<\Predis\Client>|\Redis
$redisKey : string
__construct(\Predis\Client<\Predis\Client>|\Redis $redis, string $key, mixed $level = Logger::DEBUG, bool $bubble = true, int $capSize) : mixed
\Predis\Client<\Predis\Client>|\Redis | $redis | The redis instance |
string | $key | The key name to push records to |
mixed | $level | |
bool | $bubble | |
int | $capSize | Number of entries to limit list size to, 0 = unlimited |