Module: JamBase4R::Utility

Included in:
JamBase4R, API, HttpGateway
Defined in:
lib/utility.rb

Instance Method Summary collapse

Instance Method Details

#log_error(msg) ⇒ Object



8
9
10
# File 'lib/utility.rb', line 8

def log_error(msg)
  JamBase4R.logger.error(msg) if JamBase4R.logger && JamBase4R.logger.respond_to?(:error)
end

#log_info(msg) ⇒ Object



4
5
6
# File 'lib/utility.rb', line 4

def log_info(msg)
  JamBase4R.logger.info(msg) if JamBase4R.logger && JamBase4R.logger.respond_to?(:info)
end