Changing where ActiveRecord logs to in the console

G’day folks. In the Rails console, if you configure ActiveRecord’s
logger to output to STDOUT, like this:

ActiveRecord::Base.logger = STDOUT

how do you switch it back to writing to a file? I tried the 2 lines
below separately, but AR still logs to STDOUT afterwards:

ActiveRecord::Base.logger =

ActiveRecord::Base.logger =

Here’s a quick summary of what I’ve found:

Any ideas? Thanks,

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