-
Notifications
You must be signed in to change notification settings - Fork 15
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
Integrate a Logger-Class with a namespace, maybe PSR3-Logger? #32
Comments
The Logger is from log4php; we haven't change anything at that source code, just copied it into the project. Unfortunately Log4php is still not using namespaces, so a update wouldn't fix it. The library itself uses the FACTFinder\Util\LoggerInterface - always with namespace notation. Log4php is included into the project by default using the FACTFinder\Util\Log4PhpLogger implementation. If you have a different logger, you can create a similar LoggerInterface implementation and simply delete log4php. |
Hi @rudibatt why do you close the ticket? Is a plan, to deliver a more robust library such a bad idea? |
I closed it, because there is no solution here. The log4php logger can't be fixed as we won't change that code and if log4php shouldn't be used, this can be replaced in a project. ...or did I miss understand it wrong and you suggest to replace log4php per default? |
I just checked PSR3-Logger and this looks very similar to our LoggerInterface and as far as I could see it does not provide a default logger; it's also just that LoggerInterface. So I don't get this issue.. |
Thx for your reply. The missing namespaces makes matters worse. But i did not want to discuss DI styles till now - you can not be responsible for every possible DI-Framework there is - but using not secure namespaces is a responsibility of you. PS: PSR3 was a suggestion for the refactoring of the used logger mechanics |
Thanks for your explanation. |
+1 |
yeah ..or the naming of logger can be done afterwards or not at all anymore. This is how it would work with the PSR3-Logger. @abognetti: are you still developing this lib? Could you do one of the proposed solutions? |
I could try my best aswell. (without psr3 firstly) |
Is there something new here? Or should i try my best? |
Seems like do not have a maintainer here anymore... :( |
You use a "Logger"-Class without any namespace. This is very bad style for an external library and will break many projects (as it does with mine).
The text was updated successfully, but these errors were encountered: