limweb / sabreamf

Automatically exported from code.google.com/p/sabreamf
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Error Logging #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

SabreAMF would benefit from some ability to log errors.

For example we use the following code in our gateway script:

...
$server = new SabreAMF_CallbackServer();
$server->onInvokeService = 'myCallback';
$server->exec();
...

SabreAMF catches all errors cleanly and transfers them to the flash client.
It does so very neatly, however from a server administration perspective,
as well as ease of development, it would be very helpful if we could also
see those errors appear in the PHP error log or a log dedicated for that
purpose.

It could also be just a question of allowing to get the last caught
exception, so for example the next line in the code above could be:

if ( $e = $server->getException() )
  // Do something...

This than leaves the client code with the ability to do something
intelligent with the exception, so SabreAMF doesn't need to do anything itself.

Original issue reported on code.google.com by amirab...@googlemail.com on 14 Jun 2009 at 2:07

GoogleCodeExporter commented 9 years ago
This makes sense

Original comment by evert...@gmail.com on 15 Jun 2009 at 1:02