Can you be more precise about your classpath ?
Is log4j actually in ? If yes, which version ? You may, otherwise, actually not be using log4j...


I am surprised about Log4J.properties, I was used to "log4j.properties". Which OS are you in ?

I used to have logging working into jelly after some tweaking... Jelly is using commons-logging which, if it discovers it, will try to use log4j, otherwise the JDK 1.4 logger, otherwise it's own simple logger. But more is detailed on commons-logging pages.

Be careful that all this is very very classpath/classloader dependend.... for example an environment like Tomcat can be pretty hard to debug for such things!

paul


On 26-Apr-04, at 14:08 Uhr, David Wynter wrote:


Hi,

This has been asked a coupla time before and not answered. I have embedded
Jelly into my Turbine web application. It has several Log4J logs already.
However it is not clear how to turn on logging in Jelly.


I have added the following to my Log4J.properties file with no result.

#
# Jelly Category
#
log4j.category.org.jelly = DEBUG, jelly
log4j.additivity.jelly = false

#
# Jelly gets configured to write its output onto its own
# category.
#
log4j.appender.jelly = org.apache.log4j.FileAppender
log4j.appender.jelly.file = ${applicationRoot}/logs/jelly.log
log4j.appender.jelly.layout = org.apache.log4j.PatternLayout
log4j.appender.jelly.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.jelly.append = false

Thx,

David Wynter


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



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



Reply via email to