Add options to rolate the log file

I have problem with the log file, my server was out of storage when the log file was too large (6GB).
This pull request will allow user config the limit of log file.
Please review and merge it to the master repository if it's good enough.

Thanks you!
I have just revert it, thanks!