# Rspec logging

**URL:** <https://www.ruby-forum.com/t/rspec-logging/139728>\
**Category:** Ruby\
**Created:** [June 6, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/rspec-logging/139728 "2008-06-06T12:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [June 6, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/rspec-logging/139728/1 "2008-06-06T12:56:02Z")

</div>

Hi,

I am trying to find some output logging in the Rspec API

As I don’t want to do this

`
 Then "the resultant links are displayed with the search text in each
description" do
   browser.links.each do |lnk|
     if lnk.id =~ /programmeLink/
       lnk.click
       puts "pass" unless ui.does_the_html_include?(@text)== 0 #regex
       browser.back
     end
 end
 `

Or am I structuring this wrong?

Regards

Aidy
