Copy and paste the log4j.properties file into WEB-INF/Classes
directory. Specify the properties file in appengine-web.xml file.
S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine
appengine-web.xml
<system-properties>
<property name="log4j.configuration" value="WEB-INF/
classes/log4j.properties"/>
</system-properties>
On Oct 16, 12:12 am, Andrew Ducker <[email protected]> wrote:
> I have the default log4j.properties in the root of my src folder
> (which is then copied to the war/WEB-INF/classes folder
> automatically).
>
> I have this in my appengine-web.xml:
> <system-properties>
> <property name="java.util.logging.config.file" value="WEB-INF/
> logging.properties"/>
> <property name="log4j.configuration" value="WEB-INF/classes/
> log4j.properties"/>
> </system-properties>
>
> If I do this:
> Logger logger = Logger.getRootLogger();
> logger.warn("Testing!");
>
> then I get this:
> log4j:WARN No appenders could be found for logger (root).
> log4j:WARN Please initialize the log4j system properly.
>
> Any suggestions?
>
> Thanks,
>
> Andy
--
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.