Customize logger / logging output

Hi, I want to stop rails from outputting EVERY action to my
production.log and logs in general. I dont need all that information and
will need it mostly to debug errors. Where do I go to customize what
exactly gets written to the log files. Right now, my log files grow
REALLY fast because it outputs a few lines for every action.

Thanks in advance.

In your production.rb (or environment.rb if you want this to be the
default ) set config.logger.level to something higher than the default
Logger::INFO

Fred

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