You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/07/12 22:07:06 UTC

DO NOT REPLY [Bug 30054] - can't get log4j logger in webapp under tomcat5+java1.4

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30054>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30054

can't get log4j logger in webapp under tomcat5+java1.4





------- Additional Comments From rdonkin@apache.org  2004-07-12 20:07 -------
hi eric

Just FYI all the jakarta commons components use the same mailing lists (commons-dev and commons-
user). This is a FAQ (or should be ;) Please give a little something back by adding this to the wiki FAQ 
(http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions) if I manage to set you 
straight.

The first thing I'd like to add is that the documentation has improved for the 1.0.4 release but logging 
has changed only slightly (mainly adding compatibility with the log4j 3.x series of releases). If you 
haven't taken a look already, the documentation on the website (http://jakarta.apache.org/commons/
logging/) should be more helpful than that which came with 1.0.3.

Okay - onto my recommendation. You can either use the services mechanism (which doesn't seem to 
be well documented at the moment - i'm very busy with releases at the moment so if you manage to 
get this working, putting something on the wiki would be really appreciated see http://java.sun.com/
j2se/1.3/docs/guide/jar/jar.html and the source) or add a commons-logging.properties file into the 
root of your classes file in the webapp containing 

org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

After searching for this information, I've realized just who much work needs to be done on the 
documentation. Will have to wait, though. So much to do, so little time :(

Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org