-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
@rap2hpoutre any ideas about the above? maybe I have to set something in the config file or something like that? |
Hi @Delia-SimpleKYC, 'eApply' => [
'driver' => 'daily',
'path' => 'eApply/eApply.log',
'level' => 'debug',
], is my believe path will attach the current log path to the route ( as is showing in your error |
@elminson thanks for your help. I have made the change you suggested but then, the logs are saved in the "public" directory, not in the "storage" directory |
@Delia-SimpleKYC not sure if you had run this command php artisan vendor:publish \
--provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" but you need to copy this file to your config folder: this line will look the let me know if works ( I can try to replicate it in the next hours, this is just my guess) |
@elminson but the default value of LOGVIEWER_STORAGE_PATH is the path to the logs (storage_path('logs')) ... It still does not work with the change you suggested |
@elminson @rap2hpoutre it seems to be related with this Pull Request: #275 |
@Delia-SimpleKYC I will be testing the PR, and ask @rap2hpoutre if we can merge it (I may do some test cases to validate) |
@rap2hpoutre @elminson any update on this issue? |
@Delia-SimpleKYC I will be taking a deep look in to this week |
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
The text was updated successfully, but these errors were encountered: