[ * 'targets' => [ * [ * 'class' => 'yii\log\FileTarget', * 'categories' => ['yii\swiftmailer\Logger::add'], * ], * ], * ], * ~~~ * * @author Paul Klimov * @since 2.0 */ class Logger implements \Swift_Plugins_Logger { /** * @inheritdoc */ public function add($entry) { Yii::info($entry, __METHOD__); } /** * @inheritdoc */ public function clear() { // empty method stub } /** * @inheritdoc */ public function dump() { return ''; } }