code: protected function write(array $record)
      {
          if ($this->isProcessing) {
              return;
          }
  
          $this->isProcessing = true;
          call_user_func($this->handler, $record);
          $this->isProcessing = false;
      }
docs: {@inheritdoc}