/** * {@inheritdoc} */ public function handle(array $record) { if ($record['channel'] != 'twitter_data') { return false; } return parent::handle($record); }
/** * {@inheritdoc} */ public function handle(array $record) { // we have to update the logging level each time because the verbosity of the // console output might have changed in the meantime (it is not immutable) return $this->updateLevel() && parent::handle($record); }
public function handle(array $record) : bool { if ($this->options['enabled'] && $this->connector->isActiveClient()) { return parent::handle($record); } return !$this->bubble; }