module Ethon::Loggable

def rails_logger

Returns:
  • (Logger) - The Rails logger.

Other tags:
    Example: Get Rails' logger. -
def rails_logger
  defined?(::Rails) && ::Rails.respond_to?(:logger) && ::Rails.logger
end