¿ Is this solution accessible from Models ? "logger ("...") in a model,
¿reach this code ( class ActiveSupport::BufferedLogger)?
thanks you
I like this solution (http://railscasts.com/episodes/56-the-logger)
in environment.rb:
class Logger
def format_message(level, time, progname, msg)
"#{time.to_s(:db)} #{level} -- #{msg}\n"
end
end
It seems easy , but I can't do it working for Rails 3.
--
Posted via http://www.ruby-forum.com/.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.