While we're on the synch subject, I asked this question over at
PerlMonks (http://perlmonks.org/index.pl?node_id=573779)
but hey let's ask over here too:
But how do I test the synchronization?
More specifically, can I reliably generate an overwrite situation that
the syncronization would fix?
Andy Ford
EEMS
x56647
andyford@xxxxxxxxxxxxx
> -----Original Message-----
> From: Mike Schilli [mailto:m@xxxxxxxxxxxxxxx]
> Sent: Wednesday, October 11, 2006 1:23 PM
> To: Judd Taylor
> Cc: log4perl-devel@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [log4perl-devel] log4perl multithread question
>
> On Wed, 11 Oct 2006, Judd Taylor wrote:
>
> > I'm thinking about using log4perl as an alternative to my
> current object
> > logging system, but I'm not sure how it will handle a
> situation where I
> > need to append to a master logfile from several processes
> at the same
> > time.
>
> Log::Log4perl::Appender::Synchronized to the rescue:
>
> http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#23804
>
> -- Mike
>
> Mike Schilli
> m@xxxxxxxxxxxxxxx
>
> > I need to append to this log from several programs, some of
> which are
> > multi-threaded (fork) servers, as well as from several of the same
> > programs at the same time. Avoiding conflicts where
> messages are lost,
> > and atomicity are pretty critical. I also want to centralize the
> > configuration for all clients in one place.
> >
> > Is this going to be easy with log4perl? What relevant docs
> should I be
> > looking at first?
> >
> > I need something like this running pretty shortly, and my only
> > alternative would be to write a forking Net::Server thing
> to handle the
> > incoming requests. Getting something like that reliable
> will probably
> > not be a quick thing...
> >
> > Thanks,
> > Judd
> >
> >
> >
> >
> > --
> > ____________________________
> > Judd Taylor
> > Software Engineer
> >
> > Orbital Systems, Ltd.
> > 8304 Esters Blvd, Suite 870
> > Irving, TX 75063-2209
> >
> > judd.t@xxxxxxxxxxxxxxxxxx
> > (469) 442-1767 x127
> >
> >
> >
> --------------------------------------------------------------
> -----------
> > Using Tomcat but need to do more? Need to support web
> services, security?
> > Get stuff done quickly with pre-integrated technology to
> make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> > _______________________________________________
> > log4perl-devel mailing list
> > log4perl-devel@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/log4perl-devel
> >
>
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> _______________________________________________
> log4perl-devel mailing list
> log4perl-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/log4perl-devel
>
-------------------------------------------------------------------------------------
A.G. Edwards & Sons' outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other
than the recipient.
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|