Posted on

How to put log in observer Magento 2 [duplicate]

I am trying to put log in observer

Whenever I put logger in the execute I can’t do any checkout it complains about guest checkout payment
Is there any other way I could see the log

When I do var_dump it takes me to cart page from checkout because I am stopping the payment

Leave a Reply

Your email address will not be published. Required fields are marked *