Social Icons

twitterfacebookgoogle pluslinkedinemail

Saturday 20 December 2014

How to create log file in magento

Hello Friends,

Today, i want to see you how to create log file for the debug in magento.

I search on google so many times to find perfect code for the create log file in magento but not got it.
So i plan to check in magento code and found one code for this so, here i mention one code to generate log file in magento.

Its always use to debug the code when you are working on live site. so its easy to debug the code.

Just copy below code and paste on your file where you want to debug and you can get the log file. it's just one line code



Mage::log('copy the code ', Zend_Log::DEBUG, 'log_fileName.log', true );

Now, please go to var/log/ directory and you can find the created log file.

Thanks
Enjoy Your Self.

No comments :

Post a Comment

 

Free Advertisement

Free Advertisement

Free Advertisement

Free Advertisement