I found this yesterday as an option for adding timestamps to the rails log files. Is this the best way to accomplish adding date and time stamps to the log files? http://programmingishard.com/code/463 require ''logger'' class Logger alias format_message old_format_message def format_message(severity, timestamp, progname, msg) "#{timestamp.to_s(:log_format)} [#{severity}] - #{msg}\n" end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I found this yesterday as an option for adding timestamps to the rails log files. Is this the best way to accomplish adding date and time stamps to the log files? http://programmingishard.com/code/463 require ''logger'' class Logger alias format_message old_format_message def format_message(severity, timestamp, progname, msg) "#{timestamp.to_s(:log_format)} [#{severity}] - #{msg}\n" end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---