GithubHelp home page GithubHelp logo

Comments (5)

dt3310321 avatar dt3310321 commented on August 29, 2024

sdk的log只会保留最近一次请求的记录,不会占太大的空间,是为了出错时方便排查问题哈

from cos-python-sdk-v5.

erician avatar erician commented on August 29, 2024

我知道该问什么了,在sdk代码中有logging.basicConfig的配置,我的代码也有这个配置,你的把我的覆盖了,现在我的日志记录完全写在了cos_v5.log文件里,你知道如何避免覆盖吗?我想写到自己的文件

from cos-python-sdk-v5.

dt3310321 avatar dt3310321 commented on August 29, 2024

之后发一个版本,解决一下这个问题

from cos-python-sdk-v5.

erician avatar erician commented on August 29, 2024

谢谢

from cos-python-sdk-v5.

suncle1993 avatar suncle1993 commented on August 29, 2024

虽然pypi上2018.04.08更新的cos-python-sdk-v5-1.4.0版本解决了cos_v5.log日志覆盖自己日志的问题,但是自己的日志仍然会写入到cos_v5.log中,并且程序一直在运行的过程中(即sdk中的logger一直未重新初始化)会导致cos_v5.log文件无限制的急剧增长,目前我们的一个数据统计程序中cos_v5.log日志达到了18个G,由此导致宕机。希望增加此种情况的处理,可选的处理方法如下:

1. 希望对cos_v5.log日志文件增加滚动处理,即增加RotatingFileHandler。
2. 增加日志对外的配置:打印日志和不打印日志是可以选择的。

请求帮助!!!

经验证,此问题在1.4.0版本已修复,1.4.0版本自己的日志不会写入到cos_v5.log。Sorry

from cos-python-sdk-v5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.