Module: FreshdeskApiclient::Utils::Loggeable

Included in:
REST::Client
Defined in:
lib/freshdesk_apiclient/utils/loggeable.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



5
6
7
# File 'lib/freshdesk_apiclient/utils/loggeable.rb', line 5

def logger
  @logger ||= standard_out_logger
end

#standard_out_loggerObject



9
10
11
12
# File 'lib/freshdesk_apiclient/utils/loggeable.rb', line 9

def standard_out_logger
  require 'logger'
  Logger.new(STDOUT).tap {|log| log.level = Logger::INFO }
end