Sha256: 11cb596791950f855bd570f3d0c416f3f8ead991a805e5ce025aa29fa43f5bea

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

# ~*~ encoding: utf-8 ~*~
require 'active_support/core_ext/logger'

module Aladdin

  module Support

    # Provides a convenient global logger.
    # @example
    #   class X
    #     include Logger
    #     def x; logger.info "hey"; end
    #   end
    # @todo FIXME allow configuration
    module Logger

      # Global logger.
      LOGGER = ::Logger.new(STDOUT)

      # Retrieves the global logger.
      def logger
        Logger::LOGGER
      end

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aladdin-0.0.8 lib/aladdin/support/logger.rb
aladdin-0.0.7 lib/aladdin/support/logger.rb
aladdin-0.0.6 lib/aladdin/support/logger.rb
aladdin-0.0.5 lib/aladdin/support/logger.rb