Enable system log and errors/warning in magento

by Bhumi // Dec 27,2012 // No comment

Enable system log and errors/warning in magento

Today I am going to start the series of the articles in Magento.No doubt Magento is a best open source e-commerce platform and whenever you are developing any site, code debugging is necessory and for that Magento provides options to enable system log and errors.

As we seen before about how to set Template Path Hint in Magento so today I am going to explain how you enable system log and errors/warning in magento site.

Enable system log

First of all, let’s start with System Log.To Turn on error/system log, you need to follow below steps:

Steps

  1. Login to the Magento admin and Go to -> System -> Configuration
  2. In configuration, select "Developer" option which is on the bottom of the list.
  3. Select the Log Settings tab and set Enabled as Yes

It looks like below screen.you can view in below screen for understading

configuration admin panel in magento

NOTE: Default path for system log is /var/log/system.log.

Enable Error Display

Now, Let’s see to display PHP errors in Magento

You are working with Magento and you are not able to see PHP errors..ah sometimes its frustrating.So let’s see the way to turn errors which you can display for development use only and don’t forget to disable it on a production site.

Open your root index.php and find out below if condition

remove if condition and just display like below

and then remove # from below sentence to enable warning to display.

Hope I could help someone and in today’s tutorial, you get idea about how you debug your code in Magento.

NOTE: Don’t forget to disable both system log and errors/warning when you move site to live.

As you can see, it’s very simple.I hope this little tutorial helps you with how to use browser detection built-in library into Joomla.Again if you have any questions just drop me a comment. So that’s all for now.

Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

RELATED POST

Conquer SmartPhone Internet Era with Magento Mobile Themes

On looking at stressed faces of Magento users, it is easy to understand the reason of their stress. The impact of SmartPhone powered virtual era READ MORE

Magento Extension Admin Configuration

This is the next article of magento series and I am going to cover creation of basic custom payment option in admin panel.In Previous article,we READ MORE

Session In Magento

After few days,I am back again with my new quick article release. Today we will continue with Magento article series and i am going to READ MORE

Magento Extension Configuration

Magento is a powerful open source eCommerce solutions.Let’s move to the one step ahead in Magento article series.In this blog post, we will see how READ MORE

Template Path Hint in Magento

Magento is a well known open source ecommerce platform.Recently I have started working on Magento and i want to check the position of blocks in READ MORE

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">