Module: BeyondApi::Logger

Included in:
BeyondApi
Defined in:
lib/beyond_api/logger.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



5
6
7
# File 'lib/beyond_api/logger.rb', line 5

def logger
  @@logger ||= defined?(Rails) ? ::Rails.logger : ::Logger.new($stdout)
end

#logger=(logger) ⇒ Object



9
10
11
# File 'lib/beyond_api/logger.rb', line 9

def logger=(logger)
  @@logger = logger
end