views:

160

answers:

3

Is there an Elmah equivalent for PHP in general, Symfony in particular?

A: 

error_log() writes to system log etc.

You can search in PEAR as well...

Jet
A: 

I'd recommend PEAR::Log as recommended by @Jet, along with set_error_handler() and set_exception_handler().

Wesley Mason
+2  A: 

Symfony comes with a logging framework that can log to file or any other backend you care to give it. From my understanding of Elmah this is about as close as you can get - there's nothing with all the features available and integrated with frameworks such as Symfony.

Please see this chapter in the Symfony book for more information on Symfony's logging capabilities.

PeterB