Comments (7)
wonderful this issue is resolved
from musicbot.
The dev branch has lots of exciting changes ;)
from musicbot.
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.
I will make a new request for this
from musicbot.
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.
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.
I didn't know about python run.py --logs-kept 100
from musicbot.
Related Issues (20)
- German translation HOT 1
- Issue with restart command HOT 2
- Bot can't start HOT 2
- Newly created application/bot in HOT 1
- Bot acts up due to TypeError HOT 3
- [ERROR:bot] Exception in on_message HOT 1
- Support slash commands HOT 1
- bot no worky because ytdl HOT 3
- IndexError: list index out of range on Fedora 38 HOT 12
- Unable to queue playlist on Fedora 38 HOT 22
- Update Wiki to include Fedora 38 and Rocky Linux 9 documentation HOT 2
- RuntimeError: generator raised StopIteration
- You are attempting to import requests, or import a module that uses requests. Requests (or any module that uses requests) should not be used in this code. HOT 1
- New caching code doesn't work on Python 3.8 HOT 2
- Spotify playlists take time time to fetch, rendering !clear kinda useless. HOT 2
- [Feature Request] Stream support for playlists HOT 1
- Playlist take long to play if there are inaccessible videos HOT 5
- [Minor Feature Request] have logs files with date and time based filename and clean up routine HOT 4
- Add people to "User Blocklist" without pinging them HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from musicbot.