Skip to content
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

Implement PSR-3 logging interface #402

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

estebangarcia
Copy link

I'm integrating this library on an HTTP API using Laravel. The "echo" style logging would show up sometimes on the HTTP Responses, breaking the JSON parsing for the clients.

I created a simple PS3 logger that echoes the messages called "EchoLogger" and modified the constructor to be able to override it for anyone that would like to use a different LoggingInterface.

@ePascalC
Copy link
Collaborator

ePascalC commented Jun 4, 2021

Hi @estebangarcia , I like the use of echologger, but not everybody is using composer for using this binance api php file. So people that just use the php file in their environment would get an error as they might not have the psr logger.
In fact most of those 'echo' should maybe throw an error and not just echo things...

@dmzoneill
Copy link
Collaborator

needs rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants