Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit b91fd6b

Browse files
committed
feature #707 [Console] filter doctrine log with -vv cli option (lyrixx)
This PR was merged into the 2.6-dev branch. Discussion ---------- [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. Commits ------- 138065d [Console] filter doctrine log with -vv cli option
2 parents 93fec77 + 138065d commit b91fd6b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/config/config_dev.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ monolog:
2020
console:
2121
type: console
2222
bubble: false
23+
verbosity_levels:
24+
VERBOSITY_VERBOSE: INFO
25+
VERBOSITY_VERY_VERBOSE: DEBUG
26+
channels: ["!doctrine"]
27+
console_very_verbose:
28+
type: console
29+
bubble: false
30+
verbosity_levels:
31+
VERBOSITY_VERBOSE: NOTICE
32+
VERBOSITY_VERY_VERBOSE: NOTICE
33+
VERBOSITY_DEBUG: DEBUG
34+
channels: ["doctrine"]
2335
# uncomment to get logging in your browser
2436
# you may have to allow bigger header sizes in your Web server configuration
2537
#firephp:

0 commit comments

Comments
 (0)