Forums | Mahara Community

Developers /
Using Mahara's error log


anonymous profile picture
Account deleted
Posts: 1643

25 April 2010, 16:32

Hi guys,

I've been doing a little Mahara work recently, and thought I'd share a tip for making Mahara's error log much easier to use while developing: http://nigel.mcnie.name/blog/removing-the-referer-part-of-php-error-messagse-from-apache-logs

I hope it's useful!

Two other tips:

  • Use the log_debug() function. It will dump strings, arrays and objects nicely formatted into the log for you.
  • Use tail -f to follow the log while making changes, so you can spot errors as soon as they occur. You can see how it's done in the blog post I linked to. Even better, if you use tail -F, it'll keep working properly even if the file is logrotated away - so you could tail your production Mahara's logs for days to check that everything is working smoothly.
1 result