[Mongrel] mongrel logging on win32 platform and win32 service

Ezra Zygmuntowicz ezmobius at gmail.com
Fri Aug 25 12:28:02 EDT 2006

> The problem that I am facing is that the output from 'puts, p,  
> print' on the console  are not captured in the mongrel log file (in  
> my case production.log) on Win2K SP4.
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users


	You should never use puts, print or p in a rails app. It is not tha  
way to do things. And it will cause bugs and crashes in your  
applications. If you want something to be weritten to the log then  
use the logger interface like it is supposed to be used.

logger.debug "hey Im in the log!"

	PLease save yourself the trouble of debugging this later and *do  
not* use puts, print or p in a rails app *ever*


More information about the Mongrel-users mailing list