I already do a lot of survey, but I still can not see any log under
development mode.
I use GWT 2.3 + GAE 1.5.0 with Eclipse 3.6, then run as "Web application"
import java.util.logging.Logger;
// ...
public class MyServlet extends HttpServlet {
private static final Logger log =
Logger.getLogger(MyServlet.class.getName());
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
log.info("An informational message.");
log.warning("A warning message.");
log.severe("An error message.");
}
}
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
...
<!-- Configure java.util.logging -->
<system-properties>
<property name="java.util.logging.config.file"
value="WEB-INF/logging.properties"/>
</system-properties>
</appengine-web-app>
#log4j.properties, auto generated, do not changed
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=FINE
Here is the console log from Eclipse, but do not see my added log in
servlet.
Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Successfully processed D:\workspace\Weckout\war\WEB-INF/appengine-web.xml
Successfully processed D:\workspace\Weckout\war\WEB-INF/web.xml
jetty-6.1.x
Started [email protected]:8888
The server is running at http://localhost:8888/
Time to load datastore: 70 ms
Time to persist datastore: 24 ms
After deploy, even in admin console, I can see lots of log in admin console
(due to turn on FINE log), but still can not see my log.warning() message.
I do need some hints, thanks.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine-java/-/cFLipCYlAIQJ.
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.