The _MAX_LOG constant defines the number of entries that each page call can write to a log file. The default value is 100. Thus, after 100 calls spip_log() from the same script, this function will no longer log.
It is possible to customize the value of this constant in your config/mes_options.php file. (see article dedicated).
Example:
// Increasing the maximum number of logs per hit
define('_MAX_LOG', 500);
See also: 
-  The template debugging tools
-  la fonction spip_log, sur https://programmer.spip.net