Sha256: e06b55f1072b2fa074f7e77ef47c3f33d3c4863e3d4f8e564e94ff7ef4048e61

Contents?: true

Size: 289 Bytes

Versions: 2

Compression:

Stored size: 289 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

2 entries across 2 versions & 1 rubygems

Version Path
finapps_core-2.0.20 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.19 lib/finapps_core/utils/loggeable.rb