Added automatic versioning to log files.