On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote:

Hello,

I see that when my CGI raises an exception we get a nice error message
with a stack trace as a response.

Is it possible to put some logging messages into this error response too?

With some custom coding, it should be possible, yes.

The error message is formatted in ShowException, if I'm correct.
It works much as in TApplication.


I know I can simply put logging info into log files in the server, but
it looks like it would be handy to be able to see the log messages
directly in the browser if an exception happens.

Eventually, I plan to implement something like firephp, which logs into the http headers, and this is subsequently shown by firebug...

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to