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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs