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

Add logging level into socket constructor #32

Open
crabio opened this issue Jan 20, 2021 · 2 comments
Open

Add logging level into socket constructor #32

crabio opened this issue Jan 20, 2021 · 2 comments

Comments

@crabio
Copy link

crabio commented Jan 20, 2021

hi!

I used in app your library, but I have a lot of logs and can do nothing with it:

2021-01-20 14:15:08.225: [FINE] [socket_io_client:engine.Socket] flushing 1 packets in socket 2021-01-20 14:15:08.227: [FINE] [socket_io_client:engine.Socket] socket receive: type "pong", data "null" 2021-01-20 14:15:13.250: [FINE] [socket_io_client:engine.Socket] writing ping packet - expecting pong within 60000ms 2021-01-20 14:15:13.278: [FINE] [socket_io_client:engine.Socket] flushing 1 packets in socket 2021-01-20 14:15:13.280: [FINE] [socket_io_client:engine.Socket] socket receive: type "pong", data "null" 2021-01-20 14:15:28.228: [FINE] [socket_io_client:engine.Socket] writing ping packet - expecting pong within 60000ms 2021-01-20 14:15:28.260: [FINE] [socket_io_client:engine.Socket] flushing 1 packets in socket 2021-01-20 14:15:28.262: [FINE] [socket_io_client:engine.Socket] socket receive: type "pong", data "null" 2021-01-20 14:15:33.782: [FINE] [socket_io_client:engine.Socket] writing ping packet - expecting pong within 60000ms 2021-01-20 14:15:33.815: [FINE] [socket_io_client:engine.Socket] flushing 1 packets in socket 2021-01-20 14:15:33.817: [FINE] [socket_io_client:engine.Socket] socket receive: type "pong", data "null" 2021-01-20 14:15:48.263: [FINE] [socket_io_client:engine.Socket] writing ping packet - expecting pong within 60000ms 2021-01-20 14:15:48.296: [FINE] [socket_io_client:engine.Socket] flushing 1 packets in socket 2021-01-20 14:15:48.299: [FINE] [socket_io_client:engine.Socket] socket receive: type "pong", data "null" 2021-01-20 14:15:53.818: [FINE] [socket_io_client:engine.Socket] writing ping packet - expecting pong within 60000ms 2021-01-20 14:15:53.850: [FINE] [socket_io_client:engine.Socket] flushing 1 packets in socket 2021-01-20 14:15:53.853: [FINE] [socket_io_client:engine.Socket] socket receive: type "pong", data "null" 2021-01-20 14:16:08.300: [FINE] [socket_io_client:engine.Socket] writing ping packet - expecting pong within 60000ms 2021-01-20 14:16:08.334: [FINE] [socket_io_client:engine.Socket] flushing 1 packets in socket 2021-01-20 14:16:08.336: [FINE] [socket_io_client:engine.Socket] socket receive: type "pong", data "null"

Can you, please, add option to Socket constructor to set socket io logger level?

@jumperchen
Copy link
Member

@crabio
Copy link
Author

crabio commented Feb 13, 2021

@jumperchen Hi!
Thank you, but I know about it.
I'm using the same logger in my project and FINE, FINER level too in my app. Socket-io lib add a lot of FINE messages. I want to overload libraries level

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

No branches or pull requests

2 participants