小编Fir*_*yat的帖子

如何在 monolog 中使用 swiftmailer 处理程序

我想知道如何SwiftMailerHandlerMonologpackagist 中使用?
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)

php handlers swiftmailer monolog

6
推荐指数
1
解决办法
2694
查看次数

标签 统计

handlers ×1

monolog ×1

php ×1

swiftmailer ×1