# "FireRuby" (Ruby script for FirePHP)

**URL:** <https://www.ruby-forum.com/t/fireruby-ruby-script-for-firephp/150695>\
**Category:** Ruby\
**Created:** [October 11, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/fireruby-ruby-script-for-firephp/150695 "2008-10-11T18:35:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![T.N.T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@T.N.T](https://www.ruby-forum.com/u/T.N.T)\
**Post date:** [October 11, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/fireruby-ruby-script-for-firephp/150695/1 "2008-10-11T18:35:22Z")

</div>

Hello group

Since I couldn’t find anything regarding a ruby version of the  
FirePHP.class.php for FirePHP so I wrote something myself. I’m just a  
hobbyist so it’s not the Fine Art and it’s not really festure rich  
(yet). But it works for the basic console.log(msg) thing. For plain cgi  
as well as with webrick. If anybody is interested you can download it  
here: [http://banza.net/fireruby/fireruby.tar.bz2](http://banza.net/fireruby/fireruby.tar.bz2)

I hope I didn’t reinvent an existing wheel. Comments or hints to an  
existing script are of course very welcome.

Regards from Berlin, TNT

CGI: \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

require ‘fireruby’  
console = Fireruby::CGI.new  
console.log ‘HMMMmmm…’  
console.info ‘Übrigens…’  
console.warn “Achtunk!”  
console.error “Scheiße!”

WEBrick: \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

server.mount\_proc(‘/firetest’) do |request, response|  
response.fire\_log ‘HMMMmmm…’  
response.fire\_info ‘Übrigens…’  
response.fire\_warn “Achtunk!”  
response.fire\_error “Scheiße!”  
response.body = “…”  
end
