Create a cron job for a function which checks the file size and runs unlink( WP_CONTENT_DIR . '/debug.log' )
if necessary.
Create a cron job for a function which checks the file size and runs unlink( WP_CONTENT_DIR . '/debug.log' )
if necessary.