If you want a controller specific logger, you should over-write the the inherited @logger attribute and provide an accessor for it.
attr_accessor :logger def initialize super @logger = Logger.new('try.log') end
...
If you want a rails-wide logger over-ride, you'll need to do it in config/environment*
One caveat -- in clustered setups using Ruby-specific log rotation is a huge no-no and will cause you massive headaches in the future. You should rely on some sort of external log rotation solution (logrotate, etc) for those.