[Mongrel] mongrel logging on win32 platform and win32 service

Ezra Zygmuntowicz ezmobius at gmail.com
Fri Aug 25 16:50:35 EDT 2006


On Aug 25, 2006, at 12:40 PM, linux user wrote:

>
>
> On 8/25/06, Luis Lavena <luislavena at gmail.com> wrote:
> On 8/25/06, linux user <fanoflinux at gmail.com> wrote:
> [snip]
> >
> > No by logging I mean capturing all output on console whether  
> generated by
> > puts,p,print or by mongrel in a log file.
>
> Ohhh, you're trying to debug your app using puts, print and p?
>
> bad Idea, follow Ezra suggestion, doing that could brake your ERb
> renders or something worse...
>
> is that because Rails is not threadsafe?


	Nope its got nothing to do with threading. Its just that within the  
context of a web application stdout doesn't mean what you think it  
means. THats why you should just use the logger. Erb does its own  
thing with stdout so puts and print in rails is a nono.

-Ezra


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060825/e1d9f409/attachment.html 


More information about the Mongrel-users mailing list