Allows to customize log file name and extension; added rotation based on dates 

With this commit:  added customizable log file name and extension; added removal of outdated log files with possibility to use a custom number of days for keeping files; added a new line to a log message for better readability.