Sha256: 338d1043409bcf62c3e5ab283693c351de4eaab758f329f04c73ed09ba04eec3

Contents?: true

Size: 382 Bytes

Versions: 8

Compression:

Stored size: 382 Bytes

Contents

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

  module Loggable
    def self.included(base)
      base.__send__(:extend, ClassMethods)
    end

    def logger
      Rmega.logger
    end

    module ClassMethods
      def logger
        Rmega.logger
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rmega-0.3.2 lib/rmega/loggable.rb
rmega-0.3.1 lib/rmega/loggable.rb
rmega-0.2.7 lib/rmega/loggable.rb
rmega-0.2.6 lib/rmega/loggable.rb
rmega-0.2.5 lib/rmega/loggable.rb
rmega-0.2.4 lib/rmega/loggable.rb
rmega-0.2.2 lib/rmega/loggable.rb
rmega-0.2.1 lib/rmega/loggable.rb