In my application php errors and warnings are logged to 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?
In my application php errors and warnings are logged to 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?
You must be logged in to post a comment.
Try to add in wp-config.php file this line
@ini_set( 'log_errors_max_len', '1024' );
.Source: https://developer.wordpress.org/apis/wp-config-php/#configure-error-logging