Daily Log
Daily Log
Daily Log is a plugin that automatically archives your server's log files based on configurable criteria. Other solutions currently exist, but Daily Log's goal is to make this task easy while doing the following:
- Prevent log files from getting too large
- Make it easier to manager the server log files
- Reduce the space required to store the logs by zip archiving them
- Quickly archive the log file while developing or testing plugins to start with a FRESH log file
Features
Archive log file with one or more options:
- At a configurable hour 0-23 each day [enabled in config by default for hour 0 (midnight)]
- Repeat archive every 1-24 hours [defaults to every 24 hours]
- When the log file reaches a configurable size [disabled in config by default]
- When the plugin is unloaded (ex server reboot) [disabled in config by default]
You can also archive the log file with the command /dlarchive in game or in the console
Optionally zip archived file [enabled in config by default - disable if you prefer plain text .log files in the archive folder]
You can specify in the config the number of days to keep archived log files
Configuration
- Place DailyLog.jar in your plugin folder and restart server.
- If upgrading from Beta version, delete the old config.yml file from the plugin folder.
- Edit config.yml in the plugins/DailyLog folder. The default config will archive the log file at hour 0 (midnight) and will zip the archive. The other options are disabled in the default config and must be enabled to use.
- After editing config.yml, use command /dlreload in game or in console to reload the config file
Commands
- /dlarchive - archive the server's log file immediately
- /dlreload - reload plugin's configuration
Permissions
- dailylog.dlarchive - Allows use of the /dlarchive archive command
- dailylog.dlreload - Allows use of the /dlreload reload command
Donations
- List of Donors
- xXTreePuncherXx - Server IP: mc.punchcraft.us
@xxtreepuncherxx
I've been out of the game for quite some time. Not sure if there are other plugins that clean up the new log directory. If there turns out to be a 1.8 release, I will see what features to add/remove from this plugin.
Hi man,
this is a awesome plugin and im using it on my server since we open, its helps us a LOT because we can find anything in our logs very fastly
hope you can update it to 1.7
Keep the good job up!
Hey mc247, do you plan to make this work for 1.7.2 now that it uses the new Log File system? Id still love a plugin to clean out these Directories
@TheLecturer
It's working perfect for me on 1.6.4
Anyone else getting Daily Log not working since upgrading to 1.6.2? No errors, just doesn't do anything.... Have deleted and re-created the config file.
I have logged a ticket.
Thanks.
@mc247
I did lose them.. but oh well, it's just a game and now disputes must be done by my memory. For the better really, XD. At least I caught it before a bunch of people had issues.
@deleted_8591593 I've removed version 1.5R as I was able to replicate the issue on a test server. My apologies if you lost log files that were not backed up.
I've posted a replacement file DailyLog v1.5R2 that fixes this issue. Anyone upgrading should be sure to back up the log files, just in case.
@deleted_8591593
I am not sure what would have caused that. Has anyone else had this problem? It is working as intended on my live and test servers.
So.. I got the 1.5R download and set the retention to 45 and it deleted all my logs.
http:pastebin.com/UT7x58Tv
great, Thank you!
A new version has been uploaded that allows you to specify the number of days to keep archived files. The config.yml version has changed, so you will need to delete the old config.yml and reconfigure.
This was compiled for 1.6.1, but just like previous versions, it should work with the latest bukkit version.
@GumbyDammit
I can't agree more, if it couple clean the saves every couple of weeks, that would be great, it only builds up and is a pain if you have multiple server like I do.
Great plugin, keep up the great work
@GumbyDammit
I'll work on adding that feature to the next update.
This plugin is great but it really needs a trimmer. Manually deleting logs is a pain. A user-defined retention window would be great. I usually only keep a weeks worth of logs.
nice plugin! Thank you
@mc247
Other than that one glitch (which was caused by a Bukkit crash due to a horizontal portal in the floor warping mobs to The End, but that's another story...), it's been working fine ever since.
Uploaded a Release version with one added feature. If upgrading from a Beta version, you will need to delete the old config.yml file from the plugin folder or the DailyLog will not load.
Works perfectly. I've been looking for a plugin that does this for a while and it feels good to finally find one. Keep up the good work!
@GumbyDammit
After testing, I did not find anything in DailyLog that would cause the task to not run on schedule. I was, however, able to "replicate" the issue by having another plugin I am working on cancel all tasks running on my server.
After successfully creating backups on the 9th and 10th at midnight, for some reason it didn't create a backup last night. The log shows normal server operations during that time and no error messages, or messages of any kind other than player count status.