简体   繁体   English

Google Picasa服务-关闭日志记录

[英]Google Picasa Service - Turn Off Logging

I am using .NET library of the google Picasa and when I execute the below code. 我正在使用Google Picasa的.NET库,并且在执行以下代码时。

    Dim requestFactory As GOAuth2RequestFactory = RefreshAuthenticate(accessToken, refreshToken)

    Dim service As New PicasaService("test")
    service.RequestFactory = requestFactory

    Dim query As New AlbumQuery(PicasaQuery.CreatePicasaUri("default"))
    Dim feed As PicasaFeed = service.Query(query)

It generates HELL of logging (I guess using Trace.Write). 它生成日志记录的地狱(我想使用Trace.Write)。 Our application uses trace listeners and save that tracing to text files (log files). 我们的应用程序使用跟踪侦听器,并将该跟踪保存到文本文件(日志文件)中。 but with this single call, over 10s of Mbs log is generated. 但是通过此单次调用,将生成超过10s的Mbs日志。 I want to turn off the logging for Google Picasa (preferably with code). 我想关闭Google Picasa的日志记录(最好使用代码)。

I see an article on Debugging Google Data API Clients: Exploring Traffic from Within your Program But that doesn't say anything about turning that off. 我看到了一篇有关调试Google Data API客户端:从程序内部探索流量的文章,但这并没有说明如何将其关闭。

Any help is greatly appreciated. 任何帮助是极大的赞赏。 Thank you 谢谢

本文包含删除跟踪侦听器并将其过滤到自己的配置中的两种方法,因此您无需依赖第三方api即可实现开/关功能。

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

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