Skip to main content
Version: Fegg 5.x

Mail::logFile

Get the path of the debug log file

Description​

public string Mail::logFile()

Returns the file Mail::log writes to: the file given to Mail::setDebugFlag, or mail.log in the log directory (htdocs/_fegg/site/data/log, or FEGG_LOG_DIR when it is set).

Example​

Controller
use Fegg\Tool\Mail;

$mail = new Mail();
$mail->setDebugFlag(true);
echo $mail->logFile(); // -> ".../htdocs/_fegg/site/data/log/mail.log"