for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class EmailLog
*
* @filesource EmailLog.php
* @created 04.01.2018
* @package chillerlan\Logger\Output
* @author Smiley <[email protected]>
* @copyright 2018 Smiley
* @license MIT
*/
namespace chillerlan\Logger\Output;
use chillerlan\Logger\LogOptions;
use PHPMailer\PHPMailer\PHPMailer;
class EmailLog extends LogOutputAbstract{
protected $mailer;
/** @noinspection PhpMissingParentConstructorInspection */
* EmailLog constructor.
* @param \chillerlan\Logger\LogOptions $options
* @param \PHPMailer\PHPMailer\PHPMailer $mailer
public function __construct(LogOptions $options, PHPMailer $mailer){
$this->options = $options;
$this->mailer = $mailer;
}
protected function __log(string $level, string $message, array $context = null){
// TODO: Implement log() method.