Ruby printing to Cgi Error Log

P

Patrick Li

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

Tommy Morgan

[Note: parts of this message were removed to make it a legal post.]

Hi Patrick;
There are a few frameworks in Ruby for handling logging.
The one that comes with Ruby is documented here:
www.ruby-doc.org/core/classes/Logger.html

There are also other frameworks available, such as Log4r:
log4r.sourceforge.net/

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

--Tommy M.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top