Home » Magento27 November 2009

Magento: Writing Custom Log Message

To be able to write your custom log message, you have to enable logging from Magento Admin.

To enable logging, go to

Admin Panel -> System -> Configuration -> Developer -> Log Settings -> Enabled = Yes

Then in your code, you can write the following:

You can check it at var/log/system.log or, var/log/exception.log

If you want to create your own log file for your log message, then you can do it this way:

Your log file will be created at var/log folder with your log message.

Hope it helps. Thanks.


Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • I like your post very much! It is so unique and creative!