2017 © Pedro PelĂĄez
 

symfony-bundle swift-mailer-logger-bundle

A simple Monolog and Database logger for SwiftMailer emails

image

it/swift-mailer-logger-bundle

A simple Monolog and Database logger for SwiftMailer emails

  • Wednesday, June 14, 2017
  • by pierre-vassoilles
  • Repository
  • 2 Watchers
  • 3 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

SwiftMailerLoggerBundle

Symfony2 Bundle for logging all emails sent with SwiftMailer., (*1)

Installation

Install with composer :, (*2)

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 :, (*3)

# 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., (*4)

Warning : If you want to use the database logger, don't forget to update your database with the following command :, (*5)

php app/console doctrine:schema:update --dump-sql --force 

The Versions

14/06 2017

dev-master

9999999-dev

A simple Monolog and Database logger for SwiftMailer emails

  Sources   Download

MIT

The Requires

 

14/06 2017

1.1

1.1.0.0

A simple Monolog and Database logger for SwiftMailer emails

  Sources   Download

MIT

The Requires

 

08/12 2016

dev-develop

dev-develop

A simple Monolog and Database logger for SwiftMailer emails

  Sources   Download

MIT

The Requires

 

08/12 2016

dev-Nanakii-patch-1

dev-Nanakii-patch-1

A simple Monolog and Database logger for SwiftMailer emails

  Sources   Download

MIT

The Requires

 

08/12 2016

1.0

1.0.0.0

A simple Monolog and Database logger for SwiftMailer emails

  Sources   Download

MIT

The Requires