Skip to content

PHP 8.2, Laravel 9, RecursiveDirectoryIterator::__construct(/var/www/html/storage/logs//var/www/html/storage/logs/eApply): Failed to open directory: No such file or directory #302

Open
@Delia-SimpleKYC

Description

@Delia-SimpleKYC

Hi,
I am getting this error when using a subdirectory inside the logs directory, to save the logs:

This is my config/logging.php configuration:
'eApply' => [
'driver' => 'daily',
'path' => storage_path('logs/eApply/eApply.log'),
'level' => 'debug',
],

And then, when I open the log viewer, this error appears:
RecursiveDirectoryIterator::__construct(/var/www/html/storage/logs//var/www/html/storage/logs/eApply): Failed to open directory: No such file or directory

I'd appreciate your help on this. Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions