Improve dbal config#228
Conversation
samdark
left a comment
There was a problem hiding this comment.
Looks good. Is it possible to avoid BC break?
It's OK, since there are already changes in the changelog that breaks BC. |
| if ($this->logger !== null && $loggingEnabled === true) { | ||
| $logger = $this->logger; | ||
| $dbal->setLogger($logger); | ||
| /** Remove when issue is resolved {@link https://github.com/cycle/orm/issues/60} */ |
There was a problem hiding this comment.
But it works, see tests.
There was a problem hiding this comment.
But it works, see tests.
Which test checks driver logger?
There was a problem hiding this comment.
|
Could you provide an example of the configuration before and after in the PR description? It seems that previously you could specify any PSR logger for database queries, but now it's a boolean value that turns the default logger on or off. |
Done. |
|
The logs configuration behavior looks breaking changed there. |
Before:
definition
[ //... SimplePsrLogger::class => getPsrLogger() ];params
After:
definition
params
Using any PSR logger: