src/Log/Log.php
protected function save($text)
    {
        $fileName = 'log_' . date('Y-m-d') . '.log';
        $file = fopen(storage_path('log' . DIRECTORY_SEPARATOR . $fileName), 'a');

        if (fwrite($file, $text . "\n") === false) {
            throw new ExceptionHandler(
                'Oppss! Log file not created.',
                'Can you check chmod settings to save log file in log directory, please?'
            );
        }

        fclose($file);
    }
protected function save($text)
    {
        $fileName = 'log_' . date('Y-m-d') . '.log';
        $file = fopen(storage_path('log' . DIRECTORY_SEPARATOR . $fileName), 'a');

        if (fwrite($file, $text . "\n") === false) {
            throw new ExceptionHandler(
                'Oppss! Log file not created.',
                'Can you check chmod settings to save log file in log directory, please?'
            );
        }

        fclose($file);
    }
Save Log

@param string $text

@return void
@throws