This article covers log rotation for custom logs.
cPanel only rotates default logs for select services. Log rotation for these services can be configured in WHM at the following location.
Home » Service Configuration » cPanel Log Rotation Configuration
For other services or custom logs, another log rotation utility, such as logrotated, will need to be used.