简体   繁体   English

如何查看JRE和/或GAE类的调试日志

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

Is it possible to change logging level for JRE and/or GAE classes? 是否可以更改JRE和/或GAE类的日志记录级别?

I tryed putting this into logging.properties file: 我尝试将其放入logging.properties文件:

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. 但是到目前为止,我只在GAE控制台中看到自己的应用程序日志。 I have no idea how to debug a problem that only happens in GAE but not in my local sandbox...( 我不知道如何调试仅在GAE而不是在我的本地沙箱中发生的问题...(

Differences between local and production environments usually can be easily found without logging from Google classes. 通常可以轻松找到本地环境和生产环境之间的差异,而无需从Google类进行日志记录。 For example for URLFetch it is 10 sec timeout. 例如,URLFetch的超时时间为10秒。 May be it will be better to describe the problem you are trying to debug. 描述您要调试的问题可能会更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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