-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Use a logging framework such as as SLF4J instead of System.out.println #670
Comments
Hello @oakkitten, thank you very much for this improvement! Do you think it is possible make this somehow happen without f**king everyone up right now, especially users who do not use a build system like maven or gradle? I have no knowledge on how to write such a rule so could you maybe help me do this? Greetings |
Hi @marci4, I really hope this issue is implemented eventually as it is a really nice feature to have slf4j logging. Thanks! |
Hello @WalkerKnapp, thank you for your feedback! BTW input is always welcome!!! That what github is build on! :) Greetings |
Hello everyone, Would like to get some feedback on this please! Greetings |
Looks great in my opinion. Although, there were still some printlns dotted around, so I commented on those in the commit. Other than that, looks perfect and I hope to see it in the next major release. |
Any update on this? |
@NoahAndrews 1.4 is planned as the next release. No ETA since there is a lot to do... |
An unconstructive dissent here. |
At this point SLF4J is basically an industry standard (and for a good reason). With java.util.logging you lose a lot of flexibility. SLF4J API jar is 40kb and it's java.util.logging implementation is only 8kb. |
SLF4J maybe popular, but there is no such thing that SLF4J is an industry standard. About the size, in |
Expected Behavior
the library logs stuff using SLF4J and the application controls the actual output. this will allow logging stuff like logger and thread names, etc. the library uses different log levels (trace, debug, error) for different things and it's easy to filter them out, if needed. as the output is controlled by the application, no stuff like
if (WebSocketImpl.DEBUG)
is needed.also, it would be nice to have a proguard rule file that would remove the logging messages from the code.
Current Behavior
the library prints its debug messages to stdout in a pretty raw form. all messages, accordingly, are of the same “level” and are inconsistent with the other messages that the application prints
Possible Solution
use SLF4J
The text was updated successfully, but these errors were encountered: