我想知道如何SwiftMailerHandler在Monologpackagist 中使用?
在Monolog文档中,我没有看到任何使用示例,SwiftMailerHandler或者我可能错过了。
下面是SwiftMailerHandler构造函数代码:
/**
* @param \Swift_Mailer $mailer The mailer to use
* @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced
* @param integer $level The minimum logging level at which this handler will be triggered
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
*/
public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ERROR, …Run Code Online (Sandbox Code Playgroud)