title: Send email when error occurs in console command of Symfony2 app
body: <p>How is it possible to send email with log when something wrong in console command? Currently I've configured my app to send emails from web interface and it works correctly. Swiftmailer spool is disabled. My config is:</p>
  
  <pre><code>monolog:
      handlers:
          main:
              type:         fingers_crossed
              action_level: critical
              handler:      grouped
          grouped:
              type:    group
              members: [streamed, buffered]
          streamed:
              type:  stream
              path:  "%kernel.logs_dir%/%kernel.environment%.log"
              level: debug
          buffered:
              type:    buffer
              handler: swift
          swift:
              type:       swift_mailer
              from_email: info@site.com
              to_email:   username@site.com
              subject:    An Error Occurred!
              level:      debug
  </code></pre>
  
  <p>When I try to execute <code>php app/console test:exception-command -e prod</code> which throws exception no email sends.</p>