The Logger is set on the MasterView module so you would probably need to refer to it like<br><br>MasterView::Log.debug &quot;foo&quot; <br><br>or even better use<br><br>MasterView::Log.debug { &quot;foo&quot; }<br><br>The second form is better since it is a block and the block won't get executed if the output level is above debug which saves cpu if you were doing any string building concatenating, etc. 
<br><br><div><span class="gmail_quote">On 6/8/06, <b class="gmail_sendername">Ed Howland</b> &lt;<a href="mailto:ed.howland@gmail.com">ed.howland@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I assume that the default logging level is Logger::DEBUG since by<br>setting that in init.rb, I get lots of log messages in the WEBrick<br>console window, like when the log level is not set. But if I put<br><br>
Log.debug &quot;content_str #{content_str}&quot;<br><br>in my etag method of my directive, I don't see any output in that same<br>window (or in log/development.log)<br><br>Any ideas?<br><br>TIA,<br>Ed<br><br><br><br>--<br>
Ed Howland<br><a href="http://greenprogrammer.blogspot.com">http://greenprogrammer.blogspot.com</a><br>_______________________________________________<br>Masterview-users mailing list<br><a href="mailto:Masterview-users@rubyforge.org">
Masterview-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/masterview-users">http://rubyforge.org/mailman/listinfo/masterview-users</a><br></blockquote></div><br>