Sha256: 52c21287ca9395c1a5eb74e56112a4f9e2891b593b0952756697c6fa47192785

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

module Chandler
  # Assuming self responds to `config`, this mixin provides easy access to
  # logging methods by delegating to the configured Logger.
  #
  module Logging
    extend Forwardable
    private def_delegator :config, :logger
    private def_delegator :logger, :benchmark
    private def_delegator :logger, :error
    private def_delegator :logger, :info
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chandler-0.9.0 lib/chandler/logging.rb
chandler-0.8.0 lib/chandler/logging.rb
chandler-0.7.0 lib/chandler/logging.rb