Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-10

fpweb and custom debug log

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

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?

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.

thanks,

Felipe Monteiro de Carvalho

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 6 lines
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.

Reply by email