In order to keep things DRY and share functionality between my Rails tasks and my "app", I put a lot of functionality in models. In my models I have "logger.info ..." but this is problematic when I call the model functions from rake tasks because nothing is logged. Is it possible to redirect logger for only rake tasks but have it log normally when the functionality is invoked by my "app" (web requests)?
Another related issue is I don't see ActiveMailer stuff logged when I send emails from rake tasks.