如何禁用Logcat背景噪音

时间:2014-08-05 23:28:21

标签: android eclipse apache logcat android-logcat

我想禁用某些东西出现在我的logcat中。它们只是提供信息,没有什么严重的。我只是讨厌不得不浏览很多“噪音”来找到我想要的东西。以下是我不希望出现的主要内容。

 I/APACHE HTTP (thCr=4279) - NafHttpAuthStrategyDefault(4614): (thUse=4279) NafHttpAuthStrategyDefault()
 I/APACHE HTTP (thCr=4279) - NafHttpAuthStrategyDefault(4614): (thUse=4279)    cached value : gbaSupportIsPossible=null
 I/APACHE HTTP (thCr=4279) - NafHttpAuthStrategyDefault(4614): (thUse=4279)    The current context is NOT a context of GBA service.
 I/APACHE HTTP (thCr=4279) - GbaSupportPermissionRequestCheckerImpl(4614): (thUse=4279) isCurrentProcessRequestedGba()#finished   result=false
 I/APACHE HTTP (thCr=4279) - GbaSupportPermissionRequestCheckerImpl(4614): (thUse=4279) isCurrentProcessAllowedToUseGba()#started   result=false
 I/APACHE HTTP (thCr=4279) - NafHttpAuthStrategyDefault(4614): (thUse=4279)    The GBA permission wasn't requested for this process.
 I/APACHE HTTP (thCr=4279) - NafHttpAuthStrategyDefault(4614): (thUse=4279) It is impossible to support GBA now (many possible reasons: no Android Context, current client is GBA service, etc.), then it will be just usual HTTP.
 I/APACHE HTTP (thCr=4279) - NafRequestExecutorWrapperRedirectionHandler(4614): (thUse=4279)    It isn't GBA flow, redirection responses are not handled.

我试图将Loggers设置为警告,甚至是严重的警告。例如......

 Logger.getLogger("org.apache.commons.httpclient").setLevel(Level.WARNING);
 Logger.getLogger("httpclient.wire.header").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.HttpEntity").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.HttpResponse").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.client.HttpClient").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.client.methods.HttpPost").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.impl.client.DefaultHttpClient").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.params.BasicHttpParams").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.params.CoreProtocolPNames").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.params.HttpConnectionParams").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.params.HttpParams").setLevel(Level.WARNING);
 Logger.getLogger("org.apache.http.protocol.HTTP").setLevel(Level.WARNING);
 Logger.getLogger("httpclient").setLevel(Level.WARNING);

但它仍然不断出现。我也尝试查看我的依赖项并浏览每个.jar文件,试图找到这些类,但它非常像在大海捞针。

有什么办法可以永久禁用这些吗?我知道过滤但不是我想要的。

0 个答案:

没有答案
相关问题