Sha256: ed951f5e28987b61b8f7a264836425b62506bf3a10a624e2f194b1cdacede7d3

Contents?: true

Size: 328 Bytes

Versions: 15

Compression:

Stored size: 328 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).tap {|log| log.level = Logger::FATAL }
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
finapps_core-2.0.18 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.17 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.16 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.15 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.14 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.13 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.12 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.11 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.10 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.9 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.8 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.7 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.6 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.5 lib/finapps_core/utils/loggeable.rb
finapps_core-2.0.4 lib/finapps_core/utils/loggeable.rb