I saw Jeff Atwood's post on his blog about Exception Driven Programming and I was curious if there is anything like ELMAH for PHP?
Throwing a generic PHP exception is almost as simple as it sounds. All it takes is to instantiate an exception object—with the first parameter of the Exception constructor being the error message—and then, "throw" it.
An exception is an object that describes an error or unexpected behaviour of a PHP script. Exceptions are thrown by many PHP functions and classes. User defined functions and classes can also throw exceptions. Exceptions are a good way to stop a function when it comes across data that it cannot use.
Table of Contents ¶ PHP has an exception model similar to that of other programming languages. An exception can be throw n, and caught (" catch ed") within PHP. Code may be surrounded in a try block, to facilitate the catching of potential exceptions.
PHP Errors: 4 Different Types (Warning, Parse, Fatal, and Notice Error)
Zend Server is providing monitoring of PHP applications. The things it can monitor includes:
This is probably the closest you can get to your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With