Hi everyone,
Anybody is using Mongrel cluster and log4r (FileOutputter) in production
?
I am using that 3 mongrel clusters on the same server, logging to
log/production.log with log4r FileOutputter.
But unfortunately my logs get somehow interlaced...:-(
In one line I have a bit of log of process PID A as well as bit of log
of process ID B.
i looked a the Log4r manual about thread saftyness.. i see nothing wrong
in my log4r config
Here is an example of log line I got :
< INFO> Aug 23 15:01:26 [4997]: Parameters:
{"user"=>{"login_email"=>"seb-T7aq53A5KFg@public.gmane.org",
"challenge"=>"4c937c1698c583ff43afsdeb059cdf50c7c7a7c6",<
INFO> Aug 23
15:01:26 [5000]:
below is the my log4r config YML file.
log4r_config:
# define all loggers ...
loggers:
- name : default
level : DEBUG
additive : ''true''
trace : ''false''
outputters:
- fastFileOutputter
outputters:
- type : FileOutputter
name : fastFileOutputter
level : DEBUG
filename : "#{log_dir}/#{RAILS_ENV}.log"
formatter:
date_pattern: ''%b %d %H:%M:%S''
pattern : "<%5l> %d [#{pid}]: %m"
type : PatternFormatter
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---