-
Notifications
You must be signed in to change notification settings - Fork 93
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
Logging mechanism for debugging #126
Comments
No plans for it but we'd be be totally open to PRs. |
Cool. Mind if I refactor |
Just for to clean up all those |
Yeah, I was thinking about controlling verbosity via a property on the client. I think I'll split this into two PR's. One with a simple property check:
And maybe another for the cleanup, because I probably won't get to the cleanup today. |
What do you think about just calling the property |
Yeah, I really like the logging available in the Ruby and Python clients, but it looks like that would be a fairly large PR. For example, the Ruby code checks to see if a logger exists and decides what information to log.
If I add logging into the PHP client, do you think I should mimic the pattern and output from the Ruby client? |
I'm wondering if it's worth finding a component to avoid re-inventing the wheel. maybe symphony has a component or something? Seems like there's probably something popular that we could add as a dev dependency and then let the caller inject it into the client... but yeah kind of a PITA to do it right. |
@drewish +1 to leverage Monolog |
@drewish and @austinheap , I'm working on a patch for PSR-3 logging support now. You should see it soon. |
@reden-tm awesome! i'm happy to look at any in progress commits. |
…ion 2.41 Tracking issue at recurly#126
Hello all. I would like to point out that we recently disabled logging in production for the Python and Ruby client libraries as it is a security concern. One of the benefits of using Recurly as a platform is that you lessen your compliance scope (PCI, etc.) by letting us handle the security of processing and storing your customers' PII and credit card data. By logging the information sent to and from the Recurly servers, you now open yourself up to various security and compliance risks, hence we do not advocate logging production data from our libraries. For that reason, I'm going to go ahead and close out this issue and the related PR (without merging it). Please be aware of the risks of using forks of this library that log production data, and please take all precautions to protect your customers' data. |
Ruby has a logger and Python has a logger.
We're using the recurly-client-php library, and we really could use a debug mode logger or a general logger to trace logic errors with our usage of the recurly client.
Are there any plans for this?
The text was updated successfully, but these errors were encountered: