Log to Rails.logger if available, else to STDOUT.