Limit the size of log file in php-wordpress

admin

Administrator
Staff member
In my application php errors and warnings are logged to
Code:
error_log
file in present directory.

But the size of the log file become huge(eg: 2Gb,5GB etc)

How can i limit the size of log file in php,wordpress?