Sha256: 77dc6b4436d8f102d0fac58fb3f86c88c77d5badb3d054a0f0a74b975231776b

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

module Rmega
  def self.logger
    @logger ||= begin
      logger = Logger.new($stdout)
      logger.level = Logger::ERROR
      logger
    end
  end

  module Loggable
    extend ActiveSupport::Concern

    def logger
      Rmega.logger
    end

    module ClassMethods
      def logger
        Rmega.logger
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmega-0.2.0 lib/rmega/loggable.rb