lib/maglev/utils/class_logger.rb
# easy way to log the return value of code
easy way to log the return value of code
easy way to log the return value of code
def log_info(result = nil)
      result ||= yield
      logger.info "#{caller_locations(1,1)[0].label}: #{result.inspect}"
      result
    end
def log_info ( result = nil ) result ||= yield logger . info "#{caller_locations(1,1)[0].label}: #{result.inspect}" result end
easy way to log the return value of code
easy way to log the return value of code
result
<not_specific>