it/swift-mailer-logger-bundle
Composer 安装命令:
composer require it/swift-mailer-logger-bundle
包简介
A simple Monolog and Database logger for SwiftMailer emails
README 文档
README
Symfony2 Bundle for logging all emails sent with SwiftMailer.
Installation
Install with composer :
composer require it/swift-mailer-logger-bundle
Enable the bundle in your project
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new IT\SwiftMailerLoggerBundle\ITSwiftMailerLoggerBundle(), // ... ); }
Config
Add the following line to your config.yml :
# app/config/config.yml it_swift_mailer_logger: level: debug # Default to "info" type: rotating_file # Default to "rotating_file" path: ~ # Default to "%kernel.logs_dir%/mailer.%kernel.environment%.log" max_files: 15 # Défault to 10 # enable_db_logger: false # Default to false. Set it to true to enable the database logger
Usage
A log file will automatically be created and filled when emails are sent. Turn ON the database logger to log all emails sent into your database.
Warning : If you want to use the database logger, don't forget to update your database with the following command :
php app/console doctrine:schema:update --dump-sql --force
统计信息
- 总下载量: 116
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-08