Giter Site home page Giter Site logo

Comments (7)

OzzyHelix avatar OzzyHelix commented on June 27, 2024

wonderful this issue is resolved

from musicbot.

BabyBoySnow avatar BabyBoySnow commented on June 27, 2024

The dev branch has lots of exciting changes ;)

from musicbot.

OzzyHelix avatar OzzyHelix commented on June 27, 2024

this is good there is just one thing that I would request the filename of the log files contain dates and time and a routine to clean up older log files I could add that to this issue or open a new issue might open a new issue?

from musicbot.

OzzyHelix avatar OzzyHelix commented on June 27, 2024

I will make a new request for this

from musicbot.

itsTheFae avatar itsTheFae commented on June 27, 2024

Currently the file name is taken from the default log file names. There are a few command line arguments you can use to enable the log rotation, and set a custom date-format for the date/time used in the file name.
These options are only available via command line flags, but they should be added to config at some point too. For now you can see them by using python run.py --help since they are currently only documented on the PR that merged them.

I should mention that log file rotation is only done at shutdown, so if you start the bot without the flags it will not rotate the log and the next run will overwrite it.

This probably wont be a perfect solution, as managing logs is usually better done with a dedicated tool, like logrotate for linux or something similar in windows land.

from musicbot.

OzzyHelix avatar OzzyHelix commented on June 27, 2024

my biggest issue was the log overwriting itself again and again so I thought a system where the log files had the date in them and then there was a clean up routine would be a good route perhaps I am wrong

from musicbot.

OzzyHelix avatar OzzyHelix commented on June 27, 2024

I didn't know about python run.py --logs-kept 100

from musicbot.

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.