Analytics :: writeToFile: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Service\Analytics :: writeToFile()
//  /dist/bitrix/modules/bizproc/lib/service/analytics.php:44

    
private function writeToFile($content)
    {
        if (!
$this->logFile)
        {
            return 
false;
        }

        if (
strlen($content)>0)
        {
            
ignore_user_abort(true);
            if (
$fp = @fopen($this->logFile"ab"))
            {
                if (
flock($fpLOCK_EX))
                {
                    @
fwrite($fp$content PHP_EOL);
                    @
fflush($fp);
                    @
flock($fpLOCK_UN);
                    @
fclose($fp);
                }
            }
            
ignore_user_abort(false);
        }
    }