Sha256: 964d2416c0ac3262eef37ff21545d90dce967e75aedad464841cee7c108f1e3b

Contents?: true

Size: 402 Bytes

Versions: 4

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

module Hanami
  # @api private
  module Providers
    # Provider source to register logger component in Hanami slices.
    #
    # @see Hanami::Config#logger
    #
    # @api private
    # @since 2.0.0
    class Logger < Hanami::Provider::Source
      # @api private
      def start
        register :logger, Hanami.app.config.logger_instance
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hanami-2.2.1 lib/hanami/providers/logger.rb
hanami-2.2.0 lib/hanami/providers/logger.rb
hanami-2.2.0.rc1 lib/hanami/providers/logger.rb
hanami-2.2.0.beta2 lib/hanami/providers/logger.rb