Sha256: 80c7e4d6071b59f5cac615323052ff2a6cdf8e46ed67d22f006a04eb3f21fff7

Contents?: true

Size: 392 Bytes

Versions: 8

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module FinAppsCore
  module Utils
    # Adds logging capabilities when included into other classes
    module Loggeable
      def logger
        @logger ||= begin
          require 'logger'
          logger = Logger.new($stdout)
          logger.level = FinAppsCore::REST::Defaults::DEFAULTS[:log_level]
          logger
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
finapps_core-6.0.2 lib/finapps_core/utils/loggeable.rb
finapps_core-6.0.1 lib/finapps_core/utils/loggeable.rb
finapps_core-6.0.0 lib/finapps_core/utils/loggeable.rb
finapps_core-5.0.16 lib/finapps_core/utils/loggeable.rb
finapps_core-5.0.15 lib/finapps_core/utils/loggeable.rb
finapps_core-5.0.14 lib/finapps_core/utils/loggeable.rb
finapps_core-5.0.13 lib/finapps_core/utils/loggeable.rb
finapps_core-5.0.11 lib/finapps_core/utils/loggeable.rb