Sha256: d93afb101b8c886b0a531dfb380afd6070490cc511496db8056c8f8479756da1

Contents?: true

Size: 346 Bytes

Versions: 18

Compression:

Stored size: 346 Bytes

Contents

require 'logging'

module Junkie

  # Utility module that includes a logging function `log` into the class
  # that includes this mdoule
  module Log

    # constructs a new Logger for the class
    #
    # @return [Logging.logger] returns a Logger instance for the current class
    def log
      @log ||= Logging.logger[self]
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
junkie-0.1.3 lib/junkie/log.rb
junkie-0.1.2 lib/junkie/log.rb
junkie-0.1.1 lib/junkie/log.rb
junkie-0.1.0 lib/junkie/log.rb
junkie-0.0.15 lib/junkie/log.rb
junkie-0.0.14 lib/junkie/log.rb
junkie-0.0.13 lib/junkie/log.rb
junkie-0.0.12 lib/junkie/log.rb
junkie-0.0.11 lib/junkie/log.rb
junkie-0.0.10 lib/junkie/log.rb
junkie-0.0.9 lib/junkie/log.rb
junkie-0.0.8 lib/junkie/log.rb
junkie-0.0.7 lib/junkie/log.rb
junkie-0.0.6 lib/junkie/log.rb
junkie-0.0.5 lib/junkie/log.rb
junkie-0.0.4 lib/junkie/log.rb
junkie-0.0.3 lib/junkie/log.rb
junkie-0.0.2 lib/junkie/log.rb