简体   繁体   中英

How to see debug logs for JRE and/or GAE classes

Is it possible to change logging level for JRE and/or GAE classes?

I tryed putting this into logging.properties file:

sun.net.www.protocol.http.HttpURLConnection.level = ALL
com.google.appengine.api.urlfetch.level = ALL 

I tryed to change level from code:

Logger.getLogger("sun.net.www.protocol.http.HttpURLConnection").setLevel(Level.ALL);
Logger.getLogger("com.google.appengine.api.urlfetch").setLevel(Level.ALL);

But so far i only see logs of my own app in the GAE console. I have no idea how to debug a problem that only happens in GAE but not in my local sandbox...(

Differences between local and production environments usually can be easily found without logging from Google classes. For example for URLFetch it is 10 sec timeout. May be it will be better to describe the problem you are trying to debug.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM