How To Disable Yii's Log Rotation?

I want to use logrotate instead of Yii’s log rotation because logrotate provides more configuration options (among which compression is the most important). However, I can’t find a way to stop Yii from rotating its own log file.

Looking at CFileLogRoute I found that I can work around this by making maxFileSize ridiculously high (10GB or so), and Yii won’t rotate the log anymore. Is there a more elegant solution?

What about setting maxLogFiles to 1? Not sure if the name is misleading though, from the code it looks like it keeps 2 files when you set it to 1.

You are right, maxLogFiles defines the number of old files to keep. The default is 5, so I have one log file plus 5 old rotations.