Feature/81 latest log file implementation (#84)
* Created log rotation class
* Added log rotation task
* removed rotation scheduling
* Added log rotation scheduling
* Switched to bukkit task scheduling
* Renamed variable a to logger
* removed un-necessary comments
* moved log rotation scheduling instantiation
Log rotation was instantiated before all startup tasks were complete, missing logs from startup. Instantiation has not been moved AFTER the server prompts "Done (0.059s)! For help, type "help" or "?""
* Rewrite of log rotation logic.
Log rotation logic prior to rewrite moved contents of latest.log into a log with the days date, improperly handling the logs which might contain previous dates e.g. server stopped over midnight.
New logic will handle crashes, and logs containing multiple days dates.
* Make latest log file optional
---------
Co-authored-by: Johny Muffin <jetpackingwolf@gmail.com>
authored by Joshua Reisbord Johny Muffin and committed by GitHub 09cfb203 07612eaa