5 6 7 8 9 10 11 12 13
# File 'lib/loggers/duplicate_dashboard_logger.rb', line 5 def logger @logger ||= begin if defined?(Rails) Rails.try(:logger) || Logger.new(STDOUT) else Logger.new(STDOUT) end end end