Re: [Asterisk-java-users] Added java.util.logging as a log facility
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-04-20 22:50:25
|
On Fri, 2005-04-15 at 16:14 -0700, Steve Drach wrote: > Attached are two files: > > net/sf/asterisk/util/LogFactory.java (modified) > net/sf/asterisk/util/JavaLoggingLog.java (new) Thanks - I included your patch into CVS. I think the two most relevant APIs for logging are log4j and java.util.logging. With the native java.util.logging support now available in asterisk-java I decided to drop commons-logging completly. Asterisk-java now looks for log4j and if available uses it, otherwise it uses java.util.logging and if thats not available it logs nothing at all. Using commons-logging caused some problems with the approach I choose (i.e. wrapping it). When commons-logging used log4j it was unable to determine the correct class name for logging. It always used the name of the wrapper class instead of the class that caused the logging. This problem is now gone due to the direct usage of log4j. =Stefan |