PDA

View Full Version : CustomLog in a RoR site?


travisbell
10-07-2008, 12:59 AM
Hey guys,

How would I go about adding a custom log like so for my RoR site:

CustomLog /path/logs/popularity_log "%{_session_id}C %U"

I thought I would put it in the "Apache Style Configurations" but it doesn't like it being there.

Thanks!

mistwang
10-07-2008, 06:36 AM
It will not work with LiteSpeed as LiteSpeed does not add arbitrary log file now, you may need to implement it on RoR side somehow.

travisbell
10-07-2008, 03:15 PM
Hey mistwang,

Thanks for the prompt response as usual. Do you guys have plans on implementing custom log files?

mistwang
10-07-2008, 03:47 PM
No plan yet.

travisbell
10-08-2008, 05:28 PM
Hey mistwang,

Thanks.

Just a FYI, we ended up moving this site to Apache + Passenger since it was a lot easier to use the 1 CustomLog line then write our own logger in Rails. We're still using LiteSpeed to server up all of our PHP though :D