symfony/symfony-standard — pull request #707 by lyrixx (2014-09-03 23:24:44+00:00)
Title: [Console] filter doctrine log with -vv cli option

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | none
| License | MIT
| Doc PR | none

I add this configuration to all my projects. So I think it could be the default
behavior fore everyone.

Why?

When you write commands and you use lot of log in your application with the
`debug` log level; you have to use `-vvv` option to see them. But with
`-vvv``option, doctrine log is also output. This is a bit annoying because it
becomes very hard to filter your log from doctrine log.

How?

So with this patch you get all logs with `debug` or higher log level, except
doctrine log with `vv` option. And you get all logs with `-vvv` option. With
only `-v` option, you get only `info` or higher log level.