-
-
Notifications
You must be signed in to change notification settings - Fork 962
Improve Log #412
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
Improve Log #412
Conversation
zolotarev-om
commented
Feb 14, 2017
- added ability to initialize monolog-update instance
- added ability to specify external monolog handler for methods of initializing the logs
- initialize* methods now initialize only monolog instance, init*Log methods now initialize each specific log
- simplify FQN / fix PHPDOC
Oh noes, just saw you closed this! Thanks so much for your contribution, I like the idea of your PR, to bring more order and flexibility to the logger 👍 I understand your thinking when you added a parameter to the A more logical (and more testable) approach in my view, would be to add separate methods entirely for the external initialisers. (e.g. As parameters, a user woud have to pass at least a @MBoretto @jacklul |
The closing PR fortunately by accident. Moved fork into the organization and accidentally deleted branch. I like the idea of Unfortunately, at the moment I don't understand the reason to use two instances of the |
I remember there was a good reason to use 2 separate ones, but I honestly don't remember, as they're using different log levels anyway 😕 The way it's set up now, the external Logger is only set once and can't be overridden, so the private variable will stay the same. Doesn't mean this is good though! Thinking of this, that was the idea of the Also, maybe it would make more sense to call the methods |
Right, if I recall correctly, we decided to have the two, to make sure that the update logs are separately handled. But I'm just questioning if this still makes sense... |
@zolotarev-om Have you thought about this any further? |
In the package should be a single logger instance. Log level can be defined in each |
Using PSR-3 (#964) in favour of this. Thanks @zolotarev-om anyway! |