Hi, my server's log always gets filled up (400mb) roughly every week (several restarts, etc) and It's getting to be a chore to clear it. As a fan of automation, can anyone make a plugin that does this every week, after every restart, etc? The name for it could be Logcleaner or Cleanlog. I'd appreciate it, thanks!
I've found one similar to what you're after, but it's outdated. You could always give it a try: http://dev.bukkit.org/bukkit-plugins/logmanager-keep-your-log-file-cl/
Yeah I did try it out, works on restart but no timed deletes unfortunately :/ I like the timing of it the best i.e. delete every 7 days (24000ms, etc).
I'm pretty sure shared hosting So... any of Bukkit's brilliant developers wanna take a stab at this? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
As far as I know: The server log is in use when the server is running, we can't modify a file that is in use. However if you are able to change your startup script then I can clear your log every time the server stops btw: Don't bump withing 24 hours
sorry, I'm kind of new here; thanks for the info, I have my server restart twice a day, is there any way to tell it to clear log on start every 7 days?
Will see tomorrow if I can come up with something, maybe that I can still edit the server.log while the server is running. Don't know for sure though
Alright, it would be greatly appreciated! Actually now that I'm looking at it, if you could make the plugin also clear folder, that would be perfect: I found out today I had 200mb in residence backups, theres no way to disable that so, a nice weekly clear would help fix that thanks!
It's not so much work, but a simple plugin could fix something that costs 5 minutes of time each week, would save me 4 and a half hours each year; 4 and a half hours that I could be on my server. If it can save time, why not implement it?
https://www.dropbox.com/s/blnnbqe52n64qc1/FileDeleter.jar Time is in ms, check the config for it Default is 6.75 day Files that are listed but aren't their won't cause errors! Please try this on a test server first, this is untested and could delete your server files!!!!! The main folder is the one where the server is located
There is a config list "deleted", there you put in the folders, so that would be: "plugins/worldedit"
I don't think the plugin works, set time to 6000 ms and the log was still there, good as new despite running for several minutes
Ah has to be inabled in game Ill try that out Don't see any in-game commands, how do you activate it exactly?
Edit your run.bat ( or how it is called ) Code: :start [USER=90771833]Echo[/USER] off java -Xmx1024M -Xms1024M -jar craftbukkit.jar goto start This is mine, this will continually restart the server
I'm running this on my test server yet, despite restarting it manually every 2 minutes (roughly) it doesn't clear the log, and I doing anything wrong?
Fixed some errors: When I file is in use it will get removed when the server stops Folders get removed, may leave an empty folder, don't worry, this will get removed at the next restart https://www.dropbox.com/s/blnnbqe52n64qc1/FileDeleter.jar