I'd really suggest just using a global file search/replace. From what I remember you should be able to replace all the "java.util.Logger" references with "org.apache.log4j.Logger", and you should be on your way.
If you're on a Win32 platform, highly recommend Textpad (http://www.textpad.com/). You can use the CTRL+SHIFT+O to open all *.java from a directory root and include all sud dirs, and then use the search/replace function to replace in all files, and then CTRL+SHIFT+S to save all. Should take about 60 seconds! :) cheers, Paul Smith > -----Original Message----- > From: Daniel Lipofsky [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 11 May 2004 2:52 AM > To: [EMAIL PROTECTED] > Subject: converting from java.util.logging > > > I have a bunch of old code that uses java.util.logging.Logger and I > want to use Log4j instead. I don't want to edit every single source > file. So my idea is to extend java.util.logging.Logger so that > it wraps org.apache.log4j.Logger. Then all my code can keep using > java.util.logging.Logger but the results will go through log4j. > All the code gets its loggers from one factory class so that > won't be hard to change. > > Has anyone done this? Is there a wrapper out there I can grab? > Or do you have a better idea? > > Thanks, > Dan > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
