original_string: public function makeLogEvent($name, $eventListener, $status)
      {
          if ($this->options['log_events']
              && ($this->options['log_all_events']
                  || in_array($name, $this->logEvents, true)
              )
          ) {
              $this->loggerInstance->makeLog(
                  [
                      'event_name' => $name,
                      'listener' => $this->getListenerData($eventListener),
                      'status' => $status
                  ]
              );
          }
  
          return $this;
      }
code: public function makeLogEvent($name, $eventListener, $status)
      {
          if ($this->options['log_events']
              && ($this->options['log_all_events']
                  || in_array($name, $this->logEvents, true)
              )
          ) {
              $this->loggerInstance->makeLog(
                  [
                      'event_name' => $name,
                      'listener' => $this->getListenerData($eventListener),
                      'status' => $status
                  ]
              );
          }
  
          return $this;
      }
code_tokens: public function makeLogEvent ( $ name , $ eventListener , $ status ) { if ( $ this -> options [ 'log_events' ] && ( $ this -> options [ 'log_all_events' ] || in_array ( $ name , $ this -> logEvents , true ) ) ) { $ this -> loggerInstance -> makeLog ( [ 'event_name' => $ name , 'listener' => $ this -> getListenerData ( $ eventListener ) , 'status' => $ status ] ) ; } return $ this ; }
docstring: check that event data can be logged and create log message
  
  @param string $name
  @param mixed $eventListener
  @param bool|string $status
  @return $this
docstring_tokens: check that event data can be logged and create log message