Jason Rojas
unread,Apr 17, 2008, 12:22:28 AM4/17/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ebbebb
I run multiple Mongrel (soon to be Ebb) process behind a load balancer
VIP on multiple servers.
In my rails code (I hacked on it a bit) I add this in the initializer:
def default_log_path
log = if defined? Mongrel and environment == 'production'
ObjectSpace.each_object(Mongrel::HttpServer) { |i| @port =
i.port }
raise "Port could not be introspected!" unless @port and
@port.to_i > 0
"#{environment}.#{@port}.log"
else
"#{environment}.log"
end
File.join(root_path, 'log', log)
end
Obviously this does not work for Ebb.
So, here is the explanation of the code..
Because multiple mongrel processes are writing to one file, log
entries, between Processing and Completed, can become jumbled making
the log files almost impossible to read.
So this code, splits the log files up based on the port number used.
The -l in ebb does not log the production logs, is there any way to
change that? or is there a better place to be looking (in Rack, or
anything else) that could help me figure out this logging issue for
Ebb?