1. Have a look at http://groups.google.com/group/google-appengine-java/browse_thread/thread/7df3660dcb243c33/5d2fb7b4d89a23ea?hl=en&lnk=gst&q=Logging+Ian+Marshall#5d2fb7b4d89a23ea for a hint about your "appengine-web.xml" file.
2. I place my "logging.properties" file in /WEB-INF/classes Why? I cannot remember, but this worked for me. 3. Your "logging.properties" file uses its default level, for your own classes, of # Set the default logging level for all loggers .level = WARNING I use # Set the default logging level for all loggers .level = WARNING com.my.app.[...].level = FINE This then allows my log message of level FINE or more severe to be recorded. 4. Case sensitivity: I recall (perhaps wrongly) that "logging.properties" will work whereas "Logging.properties" will not. Does any of this help? On Jun 10, 8:33 pm, Daniel <[email protected]> wrote: > this is the content of the logging.properties file (I have never > touched it) > > # A default java.util.logging configuration. > # (All App Engine logging is through java.util.logging by default). > # > # To use this configuration, copy it into your application's WEB-INF > # folder and add the following to your appengine-web.xml: > # > # <system-properties> > # <property name="java.util.logging.config.file" value="WEB-INF/ > logging.properties"/> > # </system-properties> > # > > # Set the default logging level for all loggers to WARNING > .level = WARNING > > # Set the default logging level for ORM, specifically, to WARNING > DataNucleus.JDO.level=WARNING > DataNucleus.Persistence.level=WARNING > DataNucleus.Cache.level=WARNING > DataNucleus.MetaData.level=WARNING > DataNucleus.General.level=WARNING > DataNucleus.Utility.level=WARNING > DataNucleus.Transaction.level=WARNING > DataNucleus.Datastore.level=WARNING > DataNucleus.ClassLoading.level=WARNING > DataNucleus.Plugin.level=WARNING > DataNucleus.ValueGeneration.level=WARNING > DataNucleus.Enhancer.level=WARNING > DataNucleus.SchemaTool.level=WARNING > > and I have only 1 copy of it, and it was never moved, in WEB-INF > > any ideas? > > On Jun 9, 11:31 am, Ian Marshall <[email protected]> wrote: > > > > > > > > > Hi, > > > A few trouble-shooting questions: > > > · What's in your "logging.properties" file? > > · Where is this file? Has it moved recently? Have you more than one > > copy of this file? > > > On Jun 8, 2:00 pm, Daniel <[email protected]> wrote: > > > > Hi > > > > I always was writing the info messages to the log (like described in > > > here : > > > >http://code.google.com/appengine/docs/java/runtime.html#Logging) > > > > I always used the .info method and the messages were perfectly shown > > > in the Admin Log page, > > > > But recently i noticed the .info messages stopped to work, adn > > > only .warning and higher are written into the Log... > > > > Why is that? > > > > How can I write .info messages into the log? > > > > import java.util.logging.Logger; > > > > private static final Logger log = > > > Logger.getLogger(KeepSessionAliveServlet.class.getName()); > > > > log.info("KeepSessionAliveServlet"); <-- not working :( > > > > log.warning("KeepSessionAliveServlet"); <-- does work :/ > > > > Any ideas? -- 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.
