Module: FinAppsCore::Utils::Loggeable

Included in:
REST::BaseClient, REST::Resources
Defined in:
lib/finapps_core/utils/loggeable.rb

Overview

Adds logging capabilities when included into other classes

Instance Method Summary collapse

Instance Method Details

#loggerObject



7
8
9
10
11
12
13
14
# File 'lib/finapps_core/utils/loggeable.rb', line 7

def logger
  @logger ||= begin
    require 'logger'
    logger = Logger.new($stdout)
    logger.level = FinAppsCore::REST::Defaults::DEFAULTS[:log_level]
    logger
  end
end