module Quickbooks::Util::Logging

Public Instance Methods

log(msg) click to toggle source
# File lib/quickbooks/util/logging.rb, line 4
def log(msg)
  ::Quickbooks.log(msg)
end
log_xml(str) click to toggle source
# File lib/quickbooks/util/logging.rb, line 8
def log_xml(str)
  if ::Quickbooks.log_xml_pretty_print? && !(str and str.empty?)
    Nokogiri::XML(str).to_xml
  else
    str
  end
rescue => e
  e
end