0

I want to override this file

vendor/magento/framework/Logger/Handler/System.php

Basically I want to disable system.log and exception.log from var/log folder. I found that

vendor/magento/framework/Logger/Handler/System.php

this file can write in log.

Does anyone know how to override this file ? Thanks in advance.

Kishan Savaliya
7,8451 gold badge14 silver badges29 bronze badges
asked Oct 18, 2019 at 9:59

1 Answer 1

2

You can override this file

vendor/magento/framework/Logger/Handler/System.php

here in this directory..

lib/internal/Magento/Framework/Logger/Handler/System.php

Hope this will help you!

answered Oct 18, 2019 at 10:02
2
  • 1
    Its working for me. +1 for this. Commented Oct 18, 2019 at 11:21
  • Thanks, Buddy for appreciation! :) Commented Oct 18, 2019 at 11:22

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.