-
Notifications
You must be signed in to change notification settings - Fork 370
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
add a logger callback #126
Comments
I am not averse to this idea although I think it would be wise to make it suitable for PSR-3. |
Do you have any further thoughts on this? |
And do you mean by suitable for psr-3 ? Than log each request if log is enable ? |
Yes, if it is possible whilst maintaining PHP 5.2 support. |
If I'm wright that will add some dependencies to psr/log, isn't that a problem ? |
I don't think so, but I have to admit I have not look properly. It should just allow a PSR-3 compliant logging library/class instance to be passed into Idiorm and Idiorm can then just call the appropriate methods without even using the We don't need to enforce the interfaces if we don't want to as long as we are using the interfaces methods so if a PSR-3 logger is passed in it can be operated on reliably. |
In fact whatever the logger object all we want is that it has a log method compliant with the LoggerInterface log method. |
Yep, that is what I was thinking. It's only slightly different to your suggested code as well. |
so that's mean :
I'm not that is going in the idiorm design. |
Sorry I do not understand this. |
I forgot a word, sorry : |
I see what you're saying. The call to any logger can just occur in the |
Closing with preference to the pull request. |
What do you of added a realtime logger ?
I think about something like that :
The text was updated successfully, but these errors were encountered: