ruby - Is there a way to stop rails logging everything? -


i don't want log incoming ips, don't want log internal happenings.
want rails process requests come in , that's that.

is possible do?

how can prevent having growing development.log or production.log?

you replace rails logging facilities loggers log /dev/null:

class nullloggerrailtie < rails::railtie   initializer 'null_logger', :before => 'initialize_logger' |app|     rails.logger = activerecord::base.logger = actioncontroller::base.logger = ::logger.new("/dev/null")   end end 

this reroute of rails logging null device, rather letting go file anywhere. logging still happen, it'll trashed.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -