I would like to use the built-in Logger for some actions and log4r for some others… the Guides explain that the logger is set in application-level config files, for example:
Rails.logger = Logger.new(STDOUT)
Rails.logger = Log4r::Logger.new("Application Log")
Is there a way to set this at the controller or model level?
You can always code a custom logger:
Loggerfor some actions;Log4rfor other actions;