I want to have a custom logger for my application, which of course logs to a different file, someone asked a question: Setting up the logger in rails 3
But I want to
You mean, like having in application.rb:
StatusLogger = ActiveSupport::BufferedLogger.new(Rails.root.join('log/status.log'))
You could do that with this code
logfile = File.open('/path/to/log.log', 'a')
StatusLogger = Logger.new(logfile)
StatusLogger.info 'Hello World!'
And you would most likely configure this in an initializer file, or you could do it in an environment file if you wanted.