Logging

Hi guys,

I’m pretty new to Ruby on Rails but have been coding web apps for years.
Got the hang of the basics in a weekend and have been loving it ever
since :slight_smile:

I’ve a question regarding logging. Is there a way to filter the built
in logging (eg so I don’t get database requests from gloablize-ruby in
my logs)? Also anyone have any performance data on log4r - is it worth
using over the standard logger (all features being equal)?

Thanks a lot for your help,

George

Yes, you can set the logging level in the environment. By default in
production mode this is set to :info (and so database statements aren’t
in the production log)

Fred

Frederick C. wrote:

Yes, you can set the logging level in the environment. By default in
production mode this is set to :info (and so database statements aren’t
in the production log)

Fred

Cool, thank-you. If I wanted to keep all my other database transactions
except the translation ones, would there be a way?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs