Putting the mongrel port number in your logfile filename

01 July 2008 in links
tagged with [mongrel] [rails] [ruby] [sysadmin]

By default mongrels all log into a single logfile. This makes debugging a complete pain. Putting the process PID into the filename is easy, but getting the current mongrel process’ allocated port is slightly harder.

http://pastie.org/169850

 

Putting the mongrel port number in your logfile filename