I am using an small hosting with only 200Mb of space and the error.log and debug.log files placed in \"App/tmp/logs\" are increasing in size very fast. Now their size is around
The actual solution is to fix the errors and remove the debugging statements so that nothing would be written in the logs. To answer the question literally, you can configure the error handler to not log anything in core.php:
Configure::write('Error', array(
'handler' => 'ErrorHandler::handleError',
'level' => 0,
'trace' => false
));
Or, since you're running a cron job every 2 minutes anyway, delete the logs at the same time.