Open Delia-SimpleKYC opened 4 months ago
@rap2hpoutre any ideas about the above? maybe I have to set something in the config file or something like that?
Hi @Delia-SimpleKYC,
Can you try to remove storage_path
and logs from the path value?
'eApply' => [
'driver' => 'daily',
'path' => 'eApply/eApply.log',
'level' => 'debug',
],
is my believe path will attach the current log path to the route (/var/www/html/storage/logs//var/www/html/storage/logs/eApply
)
as is showing in your error
RecursiveDirectoryIterator::__construct(/var/www/html/storage/logs//var/www/html/storage/logs/eApply): Failed to open directory: No such file or directory
@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: https://github.com/rap2hpoutre/laravel-log-viewer/blob/master/src/config/logviewer.php
and set LOGVIEWER_STORAGE_PATH
env var in your .env
file to point to your full log path
this line will look the storage_path
in that order after those changes you should be able to do 'path' => 'eApply/eApply.log',
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: https://github.com/rap2hpoutre/laravel-log-viewer/pull/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