Please refer to the LogFile directive for the preferred way to implement EZproxy log file rotation.
The balance of this technote appears for historic reference.
Here is a sample shell script to rotate the ezproxy.log file with versions of EZproxy 2.2 and later running on Linux or Solaris:
# Sample log file rotation script
# Works with EZproxy 2.2 and later
# Change the directory below as relevant
# Rename current log file
mv ezproxy.log $NF
# Tell EZproxy to reopen a new ezproxy.log file
# Compress old log file
If you save this script under a name such as /usr/local/ezproxy/rotate, then configure it to run using cron.