# Logger and ActionWebService - how can I get them to work tog

**URL:** <https://www.ruby-forum.com/t/logger-and-actionwebservice-how-can-i-get-them-to-work-tog/95130>\
**Category:** Rails\
**Created:** [May 22, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/logger-and-actionwebservice-how-can-i-get-them-to-work-tog/95130 "2006-05-22T17:21:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 22, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/logger-and-actionwebservice-how-can-i-get-them-to-work-tog/95130/1 "2006-05-22T17:21:50Z")

</div>

I’m adding a web service to a small Rails app that I wrote to learn  
the framework. This is my last piece of the puzzle and I’m having  
trouble figuring out how to debug it.

I was attempting to iteratively develop the web service method using  
TDD. There’s so much coercion and stuff going on via the  
ActionWebService framework that I’m looking to fall-back to the tried  
and true methodology of using print statements. However, I can’t seem  
to get Logger to output anything to my ~/log/test.log file. Here’s an  
example:

class LibraryServiceController \< ApplicationController  
wsdl\_service\_name ‘LibraryService’

web\_service\_api LibraryServiceApi # format is \<controller\_name\>Api  
web\_service\_scaffold :invoke

def new\_item(username, type, title, length, size, state, unique\_key)  
@user = User.find\_by\_login(username)  
logger.fatal(@user)  
puts @user  
true  
end  
end

In #new\_item I can’t get logger to output anything nor does my #puts  
go anywhere that I can find. (BTW, the test passes without errors.)

Scouring the AWDR book and online resources has gotten me nowhere.

Can anyone provide a hint?

cr
