You got a lot of feedback and suggestions. What did you end up doing to
solve this?

~Ryan

On 28 April 2014 03:45, gen chen <[email protected]> wrote:

> I am now working on a node.js project based on cluster.  I got stuck on
> the logging.  After doing some research, I worked out a solution. here is
> it. i don't know if it is a good idea.  The idea is like this.  only master
> process can wirte to the log file, if the current process is a worker, then
> it send a log message to the master and then write to the log file while
> the master can directly write to the log file. this can avoid multiple
> process open and write to a same file.
>
> <code removed for brevity>


~Ryan
-- 
http://twitter.com/rmgraham

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAGjmZGwHD20x3d1sp13prSgz6akWezdwOKi07L7V%3Du7MefH_aQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to