Sha256: cff82d5c4096f4a5d2bc8a7986e0442d6b23047512288d8e3718b622ba0c1bbb

Contents?: true

Size: 290 Bytes

Versions: 3

Compression:

Stored size: 290 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.new(STDOUT)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
finapps_core-3.0.1 lib/finapps_core/utils/loggeable.rb
finapps_core-2.1.2 lib/finapps_core/utils/loggeable.rb
finapps_core-2.1.1 lib/finapps_core/utils/loggeable.rb