Peter Rossbach wrote:
Hello Remy,

I have problems to configure the new logger system.
Can you send a log4J example to demonstrate the new commons-log Logger concept.


How I can configure a log4J system?

I have no success with add log4j.jar and log4j.xml to system class path via setclasspath.bat
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%BASEDIR%\bin\log4j.jar;%BASEDIR%\bin


I see only the commons logging default messages.

Only my webapp find the log4j.jar and log4j.xml at my common/lib and common/classes
But I want see the server messages


The Logger names are:

Tomcat.<enginename>
Tomcat.<enginename>.<hostname>
Tomcat.<enginename>.<hostname>.<contextname>

correct?

There's no difference with using log4j with the current Tomcat 5.0.x (which I've never done, sorry), except that there are a few more categories.
The c-l-api JAR which is in bin doesn't include the log4j wrapper, this could be the cause of the problems.


It's funny to always see you looking for trouble with odd builds ;)

Rémy


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to