Ruby printing to Cgi Error Log

Hi guys,
Just a simple question that I can’t seem to find anywhere on google.

is there a ruby equivalent for PHP’s error_log()?

I’m writing a webpage, and it makes it a lot easier to debug if I could
just write to the error log.

Thanks for your help.

Hi Patrick;
There are a few frameworks in Ruby for handling logging.
The one that comes with Ruby is documented here:

There are also other frameworks available, such as Log4r:

There are probably others available as well but these are the two with
I am currently familiar. Either of those should provide the
you are looking for.

–Tommy M.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs