title: Log warnings and notices in Symfony 2
body: <p>In the dev env warnings are catched by the symfony ErrorHandler which is fine. In the prod env symfony ignores warnings and I only get them in the php error log. Now I want those errors also to be logged.</p>
  
  <p>Degreasing the log level didn't worked since those errors arn't handled at all. So how can I log those errors in Symfony prod environment?</p>
  
  <p>I'm using Symfony 2.0</p>
  
  <p>Edit:
  Ok, I see there isn't even a error handler when not in debug mode (Kernel.php):  </p>
  
  <pre><code>if ($this-&gt;debug) {
          ini_set('display_errors', 1);
          error_reporting(-1);
  
          DebugUniversalClassLoader::enable();
          ErrorHandler::register();
          if ('cli' !== php_sapi_name()) {
              ExceptionHandler::register();
          }
  } else {
      ini_set('display_errors', 0);
  }
  </code></pre>
  
  <p>So what's the best way to implement this without working against the framework?</p>