Saturday, October 18, 2003 11:26 AM
I've run into the same type of problem. I solved it by changing all my logging references to use the Jakarta Common Logging API's.
As a developer, in your code where you have all your "log.info(..", "log.debug(...." etc statements there is no difference. The only thing you have to do is change the static reference where you define your Logger at the start of each class where you have logging. And then, where it is first initialized.
You then create an initialization property file that points to what type of logging you are doing. They have created a LogFactory that figures out whether you are using log4j, java logging classes or a "Simple" logger class of their implementation. This saves lots of "re-coding" in future projects. And the code will run on JDK 1.3 and JDK 1.4 with just a change in the config file.
Here's a link to it Jakarta Commons Logging.