public static function logToFile()
    {
        ob_start(function () {});
        $logs = self::$Logs;
        require(dirname(__DIR__) . DS . 'Layout' . DS . 'layout.logger_cli.php');
        $contents = ob_get_clean();
        $file = Core::$logDir . DS . 'Logs' . DS . 'log_latest.php';
        if (is_writable($file))
        {
            file_put_contents($file, '<?php ' . $contents);
        }
    }
public static function logToFile()
    {
        ob_start(function () {});
        $logs = self::$Logs;
        require(dirname(__DIR__) . DS . 'Layout' . DS . 'layout.logger_cli.php');
        $contents = ob_get_clean();
        $file = Core::$logDir . DS . 'Logs' . DS . 'log_latest.php';
        if (is_writable($file))
        {
            file_put_contents($file, '<?php ' . $contents);
        }
    }
public static function logToFile ( ) { ob_start ( function ( ) { } ) ; $ logs = self :: $ Logs ; require ( dirname ( __DIR__ ) . DS . 'Layout' . DS . 'layout.logger_cli.php' ) ; $ contents = ob_get_clean ( ) ; $ file = Core :: $ logDir . DS . 'Logs' . DS . 'log_latest.php' ; if ( is_writable ( $ file ) ) { file_put_contents ( $ file , '<?php ' . $ contents ) ; } }
Output the entire log to a file. Used for debugging problems with your code.
@codeCoverageIgnore
Output the entire log to a file . Used for debugging problems with your code .