php var_dump($object) or print_r($object) to a log file

前端 未结 4 585
挽巷
挽巷 2021-02-05 16:24

This question is generic, and I would simply like to know how to dump objects to log files. In order to clarify things, i am elaborating through an example.

I have been

4条回答
  •  遥遥无期
    2021-02-05 16:52

    If you are in Developer Mode you can try if the object supports debug output via $object->debug().

    • http://magebase.com/magento-tutorials/create-your-own-log-files-with-magelog/

提交回复
热议问题