title: Symfony2 Monolog to Email Errors why swiftmailer.transport.real is non-existent service
body: <p>after updating symfony from <code>2.3</code> to <code>2.4</code> i got <code>ServiceNotFoundException</code></p>
  
  <pre><code> Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException' with message 'The service "monolog.handler.mojhandler" has a dependency on a non-existent service "swiftmailer.transport.real".' in E:\wamp\www\project\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass.php on line 59
  </code></pre>
  
  <p>here is my config_prod.yml</p>
  
  <pre><code>imports:
      - { resource: config.yml }
  monolog:
      handlers:
          main:
              type:         fingers_crossed
              action_level: error
              handler:      streamed
          streamed:
              type:  stream
              path:  %kernel.logs_dir%/%kernel.environment%.log
              level: debug
          mail:
              type:         fingers_crossed
              action_level: error
              handler:      buffered
              channels: ["!app"] # Dont log app because we dont' want 404 errors sending
          buffered:
              type:    buffer
              handler: mojhandler
          mojhandler:
              type:       swift_mailer
              from_email: %mojhandler_logger_email%
              to_email:   %mojhandler_logger_email%
              subject:    "[Panel] An Error Occurred!"
              level:      debug
  </code></pre>
  
  <p>and here is my swiftmailer configuration from config.yml</p>
  
  <pre><code># Swiftmailer Configuration
  swiftmailer:
      transport: %mailer_transport%
      host:      %mailer_host%
      username:  %mailer_user%
      password:  %mailer_password%
      port:      %mailer_port%
      auth_mode: %mailer_auth_mode%
      encryption: %mailer_encryption%
  </code></pre>
  
  <p>how can i fix it?</p>