BananaLogArchiver
About BananaLogArchiver
This is a continuation of the BananaLogArchiver originally written by codename_B. This plugin will automatically archive your server.log when it reaches a certain size. The size is configurable.
Features
- Automatically archive your server.log when it reaches a certain size.
- Automatically creates log-archive directory if it does not exist.
- Compresses the archived log file as dd-MM-yy-hh-mm.zip.
- The file size to trigger archiving is configurable.
How to install
Just drop the jar file in your plugins directory and restart your server.
Configuration
max-size-in-kb: Size of server.log to trigger archive and compression.
Change Log
v0.2 - Mar 06, 2012
- Initial version.
- Added support for CB 1.2.3-R0.1.
Cool! :D I'll try it. Idea: It deleted the server.log automaticly if there're X Server Logs in the folder :D
@karitori
It clears the existing log.
does this delete the server log file once its archived?
Still working on 1.4.6. However I too would like to be able to have it backup after a configurable amount of time like @burgviking2012 suggested. Thanks!
Very useful plugin :)
Works fine with latest 1.3.2 craftbukkit.
Thanks!
@burgviking2012
I'll look into it.
@cnaude
Would you ever consider adding an option to this to automatically log after a certain amount of time (i.e. every week) instead of, or alongside the size?
@fablecraft
I recommend putting that step in your start script.
Hey. A suggestion: The Plugin archives the log everytime the server stops. This way it would be easy for those that are setting up a new server, because the boot-text is always on the top of the file.
Thank god I found this... I couldnt figure out why I was having a bit of trouble with my server. Apparently in less than a month I had an 80gb log file from errors that occured while I was gone. p.p
@cnaude
Thanks, I guess my reading comprehension needs some work. Works fine with the right numbers in the right place.
@epicbastion
The log size is configured in Kilobytes. If you want your log to roll at 50K you should set max-size-in-kb to 50. By setting yours to 50,000 you're telling it roll when the log is at 50,000KB which is 50MB.
This does not seem to be working on the cb1.2.3 beta, it loads and says its working, i have the size set for 50000.0 when it gets over 50k the log just keeps going. any ideas.
Really appreciate this. Thanks.