0

How to stop the DB log i had used the CLI to stop but it is not stopping it increasing to huge file. I used the below command but it is not stopping. It is in the path var/debug/db.log

bin/magento dev:query-log:disable

bin/magento cache:flush

| improve this question | | | | |
0

I am not sure but try this code may be help you,

Go to this path app/etc/di.xml and add the code :

<preference for="Magento\Framework\DB\LoggerInterface" type="Magento\Framework\DB\Logger\File"/>
<type name="Magento\Framework\DB\Logger\File">
    <arguments>
        <argument name="logAllQueries" xsi:type="boolean">false</argument>
    </arguments>
</type>

and run the php bin/magento c:f

And more refer link :- https://somecrazy.com/magento-2-log-database-queries/

| improve this answer | | | | |
  • Hello it's answer is helpful or not ?? – Mohit Patel Apr 11 at 5:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.