/** * @param string $stream * @param integer $level The minimum logging level at which this handler will be triggered * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($stream, $level = Monolog_Logger::DEBUG, $bubble = true) { parent::__construct($level, $bubble); if (is_resource($stream)) { $this->stream = $stream; } else { $this->url = $stream; } }
/** * @param Gelf_Publisher $publisher a publisher object * @param integer $level The minimum logging level at which this handler will be triggered * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct(Gelf_Publisher $publisher, $level = Monolog_Logger::DEBUG, $bubble = true) { parent::__construct($level, $bubble); $this->publisher = $publisher; }