[fpc-pascal] fpweb and custom debug log

Michael Van Canneyt michael at freepascal.org
Mon Oct 17 17:29:29 CEST 2011

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...


More information about the fpc-pascal mailing list