Webbrick and logger output

Hi,

When I do:

logger.info “hello?”

I would expect it to output something from the webbrick output but it
doesn’t
seem to. Am I doing something wrong? or is there another way of
outputting
on the webbrick output?

Thanks,
– Colin

Colin JN Breame wrote:

When I do:

logger.info “hello?”

I would expect it to output something from the webbrick output but it doesn’t
seem to. Am I doing something wrong? or is there another way of outputting
on the webbrick output?

That should put “hello?” in your logfile. You can technically use puts
to output to the Webrick console, I believe, but be aware that puts are
a bad idea, and may crash FastCGI processes if they stay around in your
code until deployment.