From: Mike S. <m...@pe...> - 2006-09-27 05:49:56
|
On Tue, 26 Sep 2006, Robert Jacobson wrote: > At 02:18 PM 9/22/2006, you wrote: > >I'd recommend writing another appender which wraps around > >Appender::DBI and checks for availability. > > Ok, having looked at some other options, this sounds like the way to > go. But I have a noob question: How do I write that wrapper? Similar to writing your own appender, just call the methods of the 'wrapped' appender from within your wrapper appender: http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#e8a46 -- Mike Mike Schilli m...@pe... > > I can handle writing the database availability code (I think! :) > ) But I don't even know where to start for writing a wrapper to Appender::DBI. > > If it helps, I've written my own, albeit simple, Appender, that just > implemented the new() and log() methods. > > -- > Rob > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > log4perl-devel mailing list > log...@li... > https://lists.sourceforge.net/lists/listinfo/log4perl-devel > |