[Asterisk-java-users] Logging -- was "Re: pre-packaged jars"
Brought to you by:
srt
From: Steve D. <Ste...@Su...> - 2005-04-11 21:38:17
|
> After further investigation I think the easiest way to go is to use a > very thin wrapper around commons-logging"s LogFactory that determines > via reflection if the commons-logging classes are available. If they > are available on the classpath a commons-logging Log object (in fact a > proxy for it) will be returned otherwise a NullLog will be returned > that does nothing. So we will still have a compile time dependency on > commons-logging but at runtime logging is just switched off if > commons-logging is not available. Why not just use the logging built into Java? It does the same thing in this simple case. |