class Illuminate / Mail / Transport / LogTransport
You are viewing an older version of the documentation. For the latest, please visit master documentation.

LogTransport

Extends

Properties

protected

$logger Psr\...\LoggerInterface

The Logger instance.

Default: null

Methods

public

__construct ( Psr\...\LoggerInterface $logger ) : void

Create a new log transport instance.

Parameters

  • $logger Psr\...\LoggerInterface
public

send ( Swift_Mime_SimpleMessage $message , $failedRecipients ) : int

{@inheritdoc}

protected

getMimeEntityString ( Swift_Mime_SimpleMimeEntity $entity ) : string

Get a loggable string out of a Swiftmailer entity.

Parameters

  • $entity Swift_Mime_SimpleMimeEntity
public

logger ( ) : Psr\...\LoggerInterface

Get the logger for the LogTransport instance.