Open stevegrunwell opened 6 years ago
Any chance of this getting merged soon?
I'm currently dog-fooding this package on a client application, and have been running into issues with logs not saving properly — once I'm able to spend the time ensuring everything works properly, it'll be ready for merge + a fresh release.
Any update on this PR? Would love to use this package for a project but running in into this issue with Laravel 5.7. If i can help out in any way let me know.
For people who want to use this specific branch with the fix as it's not merged, you can install it with composer require "stevegrunwell/lost-in-translation:dev-fix/monolog-use-files"
You might have to composer remove
the old version first.
Version 1.0.0 of Lost in Translation doesn't appear to properly write log files: when using it in testing an actual application, two things happen:
laravel.log
as well aslost-in-translation.log
files, which is redundant.Error: Call to undefined method Monolog\Logger::useFiles()
.This PR establishes an actual "lost-in-translation" logging channel (dynamically at runtime after a missing translation is found, unless the user sets it up in their
config/logging.php
file), as well as actually verifies against the filesystem that the log was written.