I think you can simply put the log4j.properties file in the WEB-INF/classes dir and you 
don't need any appengine-web.xml stuff for it.  Log4j looks for its configuration file 
"on the classpath" which means it looks in WEB-INF/classes (and also in all of 
the jars in the lib directory).


AJ Chen wrote:
I have  log4j config in appengine-web.xml,
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> <property name="log4j.configuration" value="file:WEB-INF/classes/log4j.properties"/> <property name="monitor.config.file" value="WEB-INF/monitor.properties"/>
    </system-properties>
but GAE still complains about it:
log4j:WARN No appenders could be found for logger (DataNucleus.Connection).
log4j:WARN Please initialize the log4j system properly.

Is there anything else that should be set?

thanks,
-aj

--
You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.

--
0x2B | ~0x2b  --  Hamlet

--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to