Giter Site home page Giter Site logo

Add support for deleting old logs about glog HOT 21 CLOSED

google avatar google commented on May 18, 2024 9
Add support for deleting old logs

from glog.

Comments (21)

isaoa avatar isaoa commented on May 18, 2024 2

Hi ezegomez,
Thanks for the suggestions.

I'm not sure the suggested change would solve my problem.
If I understand correctly, your change would append to existing log after restart.
We need to keep ability to limit the total size of the log, let's say to 10MB.

  1. start program. it sets max_log_size to 10MB.
  2. program writes to myapp.log.
  3. program restarts
  4. program appends to myapp.log
    what would happen once it reaches the size limit of 10MB?

would it keep writing past 10MB or delete myapp.log and recreates the same file?

Either way, it won't work for us, as we want to limit the amount of logs and at the same time don't want to lose all logs when log rotates.

from glog.

bitkevin avatar bitkevin commented on May 18, 2024

I have the same problem, can't use linux logrotate to delete old log files.

from glog.

ezegomez avatar ezegomez commented on May 18, 2024

See also #19 for a possible solution that enables logrotate support (I still need to update it to the latest master though)

from glog.

sudhi-vm avatar sudhi-vm commented on May 18, 2024

+1 for this feature.

from glog.

hanzeil avatar hanzeil commented on May 18, 2024

+1 for this feature.

from glog.

njpillitteri avatar njpillitteri commented on May 18, 2024

+1 for this feature

from glog.

WangAndrew2016 avatar WangAndrew2016 commented on May 18, 2024

+1 for this feature

from glog.

asierguti avatar asierguti commented on May 18, 2024

+1 for this feature

from glog.

hyperwang avatar hyperwang commented on May 18, 2024

+1 for this feature, otherwise I need to write scripts to rotate these files.

from glog.

yyh-graphsql avatar yyh-graphsql commented on May 18, 2024

+1 for this feature.

from glog.

rockuw avatar rockuw commented on May 18, 2024

+1

from glog.

chanfr avatar chanfr commented on May 18, 2024

+1

from glog.

elithnever avatar elithnever commented on May 18, 2024

+1

from glog.

saifhhasan avatar saifhhasan commented on May 18, 2024

Any updates on this feature ?

from glog.

grahamkenville avatar grahamkenville commented on May 18, 2024

+1

from glog.

bartsimpson89 avatar bartsimpson89 commented on May 18, 2024

+1 for this feature

from glog.

hiendsoft avatar hiendsoft commented on May 18, 2024

+1 for this feature

from glog.

nevermore-muyi avatar nevermore-muyi commented on May 18, 2024

+1 for this feature

from glog.

kubeway avatar kubeway commented on May 18, 2024

+1 for this feature

from glog.

bitkevin avatar bitkevin commented on May 18, 2024

+1 for this feature

from glog.

sergiud avatar sergiud commented on May 18, 2024

Locking the issue due to spam.

from glog.

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.