Hello,
Is it possible in ruby to generate during runtime in case of an error a
log
file containing the name of the file, the line number and the line of
the
code? If so how, or where to find information about it?
Thanks,
Bernd
Hello,
Is it possible in ruby to generate during runtime in case of an error a
log
file containing the name of the file, the line number and the line of
the
code? If so how, or where to find information about it?
Thanks,
Bernd
On Feb 10, 2006, at 5:22 PM, Paatsch, Bernd wrote:
Hello,
Is it possible in ruby to generate during runtime in case of an
error a log
file containing the name of the file, the line number and the line
of the
code? If so how, or where to find information about it?
Well, you could wrap your whole code in:
begin
rescue Exception => error
end
James Edward G. II
On Feb 10, 2006, at 3:22 PM, Paatsch, Bernd wrote:
Hello,
Is it possible in ruby to generate during runtime in case of an
error a log
file containing the name of the file, the line number and the line
of the
code? If so how, or where to find information about it?
ruby -d prints out every exception raised.
–
Eric H. - [email protected] - http://segment7.net
This implementation is HODEL-HASH-9600 compliant
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