Sha256: 7401d838accbbaa4545f36f1d26b33905d075d79263d25ca77da45386fec3201

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 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.3 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.2 lib/finapps_core/utils/loggeable.rb