Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can calls to java.util.logging be redirected via commons-logging?

0
Posted

Can calls to java.util.logging be redirected via commons-logging?

0

Yes. The java.util.logging classes present in java since 1.4 are both an API and a (primitive) logging implementation. It is possible to install an “implementation” that redirects messages back to commons-logging, which will then in turn direct the calls to the appropriate concrete logging library that commons-logging is sending other messages to. Alternatively, have your java.util.logging “implementation” send messages directly to the same implementation that commons-logging is bound to. This will be faster – although if you change your commons-logging configuration to use a different logging library then the java.util.logging implementation would need to be changed too. See here for details: http://wiki.apache.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.