Author - Kristof Ringleff

Hi I'm Kristof the founder of Fooman. I will share some of my experiences gained from developing Magento extensions since version 1.0 here on MageBase.

You can see a list of all my open source and commercial extensions on Magento Connect.

More Info »

Reader Comments (12)

  1. oliver
    oliver
    July 31, 2010 at 9:37 am /

    Great article very useful!!!

    Reply
  2. Ela
    Ela
    February 8, 2011 at 1:31 pm /

    Thanks a lot for your tips

    Reply
  3. Magento
    June 16, 2011 at 1:21 pm /

    I use Mage::log to dump object, but nothing saved. what’s wrong?

    Reply
    1. Robert Popovic
      June 17, 2011 at 9:31 am /

      Did you enable logging in: System > Configuration > Developer?
      If so, where are you looking? The log is in: [magento-root]/var/log/
      Also, how are you dumping the object?

      Reply
    2. Abbas
      Abbas
      March 16, 2014 at 1:36 am /

      Enable Logging systems in Developer Config Section

      Add following code in required area.
      $messahe =’message’;
      Mage::log(‘Sample Entry’.$message, null, ‘sample.log’);

      Reply
  4. Matthias
    Matthias
    June 22, 2011 at 7:49 pm /

    I seem to have a similar problem as “Magento”. Logging is enabled. And I use a static

    Mage::log("Hello world.");

    But nothing happens. Am I doing something wrong?

    Reply
    1. Robert Popovic
      June 23, 2011 at 4:54 pm /

      Are you sure your statement is executed? Where are you putting it? Does your web server process have write rights to var/log?

      Reply
  5. Pau
    July 7, 2011 at 10:38 pm /

    Hi!

    I was having the same problem and I thought something was wrong. Just to be clear:

    1. Enable developer mode in the .htaccess file by adding:
    SetEnv MAGE_IS_DEVELOPER_MODE=true

    2. Enable log settings going to:
    System » Configuration » Developer, Log settings tab » Enabled » Yes.

    Then… it worked!

    Thanks Robert for this post. I’m just starting with Magento and it’s kind of weird for me not be able to use «echo» whereever I wont to find issues or to know where I am. I hope this log helps me!

    Reply
  6. Magento References | ew
    May 4, 2012 at 2:33 pm /

    [...] Log files Share → (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); Tweet !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); /* [...]

  7. Noel Barrera
    Noel Barrera
    January 22, 2013 at 12:11 pm /

    This log can used or mix with the other how have zend, on this way you can make on small appi with al you need to know about the process how whant to debug.

    Reply
  8. Mani Prakash
    Mani Prakash
    March 5, 2014 at 10:01 pm /

    Nice Post!

    Reply
  9. sadeesh
    March 27, 2014 at 8:02 pm /

    Use Like this:

    Mage::log(‘My variable: ‘.$myVariable, null, ‘filename.log’, true);

    After that Goto-> Root folder -> var->log

    automatically Create log file (filename.log)

    Sorry for bad English…

    Reply

Add a Comment & Join the Discussion

Insert small snippets of code by using [code]{your_code_here}[/code]
For larger code blocks please use http://pastebin.com and paste your link.

You may also use the following HTML in your comment: <a href="" title=""> <abbr title="">
<acronym title=""> <blockquote cite=""> <cite> <em> <strike> <strong>