append() public method

public append ( string $message, string $severity = Error::SEVERITY_ERROR, integer $code = null ) : void
$message string The message to log
$severity string An integer value, one of the Error::SEVERITY_* constants
$code integer A unique error code
return void
 /**
  * Handle missing data notification
  *
  * @param CollectionInterface $collection
  * @param ResourceMetaDataInterface $resource
  */
 protected function handleMissingData(ResourceMetaDataInterface $resource, CollectionInterface $collection)
 {
     $message = sprintf('Could not publish resource %s with SHA1 hash %s of collection %s because there seems to be no corresponding data in the storage.', $resource->getFilename(), $resource->getSha1(), $collection->getName());
     $this->messageCollector->append($message);
 }