[Asterisk-java-users] (no subject)
Brought to you by:
srt
From: Steve D. <Ste...@Su...> - 2005-04-14 20:12:40
|
>> Why not just use the logging built into Java? It does the same thing >> in this simple case. > > You are right, using Java's builtin logging is an alternative. > I see two problems with this approach though: > > 1. Asterisk-java using Java's logging would require JDK 1.4 at least. > Currently it also works with 1.3. > 2. Some application servers and servlet containers (e.g. JBoss) are > using log4j for logging. Commons-logging uses log4j when available, > too. > So when using Asterisk-java within such a container logs are easily > integrated. I am not sure this works equally well when using Java's > logging without a wrapper around. OK. Then put java.util.logging, before the null log. So if commons is there, that is used, otherwise if jul is there that is used, otherwise use null log. I'll submit a patch. |