Automatically rotating log files is easy. Take a look at logrotate to see how.
Your Apache logs in /var/log/(apache2|httpd) are probably already being rotated. Why are you storing this particular log in your home directory instead of in the standard location?