From: Ford, A. <and...@AG...> - 2006-10-11 18:32:07
|
While we're on the synch subject, I asked this question over at PerlMonks (http://perlmonks.org/index.pl?node_id=3D573779) 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 and...@ag... =20 > -----Original Message----- > From: Mike Schilli [mailto:m...@pe...]=20 > Sent: Wednesday, October 11, 2006 1:23 PM > To: Judd Taylor > Cc: log...@li... > Subject: Re: [log4perl-devel] log4perl multithread question >=20 > On Wed, 11 Oct 2006, Judd Taylor wrote: >=20 > > I'm thinking about using log4perl as an alternative to my=20 > current object > > logging system, but I'm not sure how it will handle a=20 > situation where I > > need to append to a master logfile from several processes=20 > at the same > > time. >=20 > Log::Log4perl::Appender::Synchronized to the rescue: >=20 > http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#23804 >=20 > -- Mike >=20 > Mike Schilli > m...@pe... >=20 > > I need to append to this log from several programs, some of=20 > which are > > multi-threaded (fork) servers, as well as from several of the same > > programs at the same time. Avoiding conflicts where=20 > 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=20 > 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=20 > to handle the > > incoming requests. Getting something like that reliable=20 > 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 > > > > ju...@or... > > (469) 442-1767 x127 > > > > > >=20 > -------------------------------------------------------------- > ----------- > > Using Tomcat but need to do more? Need to support web=20 > services, security? > > Get stuff done quickly with pre-integrated technology to=20 > make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on=20 > Apache Geronimo > >=20 > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642 > > _______________________________________________ > > log4perl-devel mailing list > > log...@li... > > https://lists.sourceforge.net/lists/listinfo/log4perl-devel > > >=20 > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on=20 > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642 > _______________________________________________ > log4perl-devel mailing list > log...@li... > https://lists.sourceforge.net/lists/listinfo/log4perl-devel >=20 ---------------------------------------------------------------------------= ---------- A.G. Edwards & Sons' outgoing and incoming e-mails are electronically archived and subject to review and/or disclosure to someone other=20 than the recipient. ---------------------------------------------------------------------------= ---------- |