Sha256: 9c2bbaf9dc143ec1db9a7b917cf392d03ff95d8aaf099cbb91c52e476a49a40c

Contents?: true

Size: 329 Bytes

Versions: 7

Compression:

Stored size: 329 Bytes

Contents

class Belated
  # Logger for Belated.
  # Include this module in your class to get a logger.
  module Logging
    extend self

    def logger
      @logger ||= Belated.logger
    end

    def log(message)
      logger.__send__(Belated.log_level, message)
    end

    def logger=(logger)
      @logger = logger
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
belated-0.6.4 lib/belated/logging.rb
belated-0.6.3 lib/belated/logging.rb
belated-0.6.2 lib/belated/logging.rb
belated-0.6.1 lib/belated/logging.rb
belated-0.6.0 lib/belated/logging.rb
belated-0.5.7 lib/belated/logging.rb
belated-0.5.6 lib/belated/logging.rb