19 Aug '13, 3pm

Log4r for Ruby on Rails: “Scalable and Robust Logging for Web Applications”

def time_in_ms(start, end) return ( ((finish - start).to_f * 100000).round / 100.0 ).to_s end ActiveSupport::Notifications.subscribe("process_action.action_controller") do |name, start, finish, id, payload| logger = Log4r::Logger['rails'] controller_format = "@method @status @path @durationms" if !payload[:exception].nil? || payload[:status] == 500 #["process_action.action_controller", 0.033505, "b4ebe16ef3da4c5eb902", {:controller=>"MongotestController", :action=>"index", :params=>{"action"=>"index", "controller"=>"mongotest"}, :format=>:html, :method=>"GET", :path=>"/mongotest", :exception=>["Mongoid::Errors::DocumentNotFound", "\nPro ... "]} logger.error { message = controller_format.clone message.sub!(/@status/, payload[:status].to_s) message.sub!(/@method/, payload[:method]) message.sub!(/@path/, payload[:path]) message.sub!(/@duration/, time_in_ms(start,finish)) mess...

Full article: http://blog.mmlac.com/log4r-for-rails/

Tweets

#reddit Log4r for Ruby on Rails: Part I of “Sca...

reddit.com 19 Aug '13, 2pm

Please try to keep submissions on topic and of high quality. Just because it has a computer in it doesn't make it programm...

Web Application by dwdonline

freelancer.com 20 Aug '13, 11pm

Project Description: I need someone who can complete this QUICKLY for my client. I need a web script written with php or r...

world.db Now Includes Web Admin Rails Engine - ...

rubyflow.com 19 Aug '13, 6am

world.db Now Includes Web Admin Rails Engine - mount WorldDbAdmin::Engine Posted by geraldbauer on August 19, 2013 — 0 com...

Valencianos! Onbuyweb busca desarrollador Ruby ...

trabajosrails.com 19 Aug '13, 4am

Onbuyweb es una startup tecnológica que esta viendo la luz. Apostamos por las tecnologías sociales integradas en entornos ...

Just wrote a post about uploading files with Gr...

omarfouad.com 18 Aug '13, 6pm

The main difference between the web now and the web some years ago is the front end development. Most of the work one time...

Looking for Designer Set up local Rails server ...

freelancer.com 18 Aug '13, 11pm

I need to set up my local ruby environment successfully and resolve conflicts so I can deploy to my server. Ruby on Rails ...

Ruby on Rails Web Developer by mattl: We need a...

freelancer.com 16 Aug '13, 2am

We need a Ruby on Rails developer to join our Rails team of 3 existing members. The website facilitates basic user registr...

[CDI] Développeur Ruby On Rails web/mobile (Rub...

remixjobs.com 16 Aug '13, 8pm

Agence web parisienne existant depuis 3 ans. Start up ambitieuse de 10 personnes, spécialisée dans le conseil en communica...

Introduction au traitement de requêtes en paral...

news.humancoders.com 16 Aug '13, 5am

Ruby Introduction au traitement de requêtes en parallèle pour les applications Rails (en) Partagé par Florent Guilleux il ...