Closed bobahvas closed 1 year ago
Sorry for the open issue, logging works another way.
You have to use filters for other handlers. For example, you collect all logs with level "debug" (can be set min and max levels as well) and from channel "doctrine". After that, you provide filtered results to your "query" handler.
filter_for_query:
type: filter
accepted_levels: [debug]
channels: ["doctrine"]
handler: query
query:
type: stream
path: "%kernel.logs_dir%/query.log"
formatter: 'monolog.formatter.json'
I suggest improving the documentation and maybe adding a current example with an explanation.
I tried to use the following config to get only DEBUG level of doctrine logs.
So, I expected to see in the log something like:
However, I see the following (info - higher level included as well):
Bubble: false property works well when I use the following config for the app category: