Hi

I too struggled with the somewhat opinionated GAE logging mechanism,
however this link helped me understand how to at least keep using
log4j (either with or without slf4j).

http://blog.xam.de/2010/03/logging-in-google-appengine-for-java.html

In addition your config item prompted me to try:

<property name="log4j.configuration" value="file:WEB-INF/log4j.xml" /
>

and this unopened the last lock in the puzzle.

Rgs

On Feb 11, 6:13 am, sakshi bhardwaj <[email protected]> wrote:
> hello,
>
> I have written the appengine-web.xml.code is as follows
>
> <?xml version="1.0" encoding="utf-8"?>
> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0";>
>         <application>daffodilapplication</application>
>         <version>1</version>
>
>         <!-- Configure java.util.logging -->
>         <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" />
>         </system-properties>
>
>         <sessions-enabled>true</sessions-enabled>
> </appengine-web-app>
>
> I have also written code for log4j.properties.......
>
> log4j.appender.A1=org.apache.log4j.ConsoleAppender
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c]
> - %m%n
>
> # tighten logging on the DataNucleus Categories
> log4j.category.DataNucleus.JDO=WARN, A1
> log4j.category.DataNucleus.Persistence=WARN, A1
> log4j.category.DataNucleus.Cache=WARN, A1
> log4j.category.DataNucleus.MetaData=WARN, A1
> log4j.category.DataNucleus.General=WARN, A1
> log4j.category.DataNucleus.Utility=WARN, A1
> log4j.category.DataNucleus.Transaction=WARN, A1
> log4j.category.DataNucleus.Datastore=WARN, A1
> log4j.category.DataNucleus.ClassLoading=WARN, A1
> log4j.category.DataNucleus.Plugin=WARN, A1
> log4j.category.DataNucleus.ValueGeneration=WARN, A1
> log4j.category.DataNucleus.Enhancer=WARN, A1
> log4j.category.DataNucleus.SchemaTool=WARN, A1
>
> Logging.properties
>
> .level = WARNING
>
> but LOGGER debugs are not displayed.Please suggest what can i do for
> displayiing the LOGGER debugs
>
> regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to