-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Convert a small number of stdout / stderr calls to slf4j #99
Conversation
Hi, first of all thanks for the contribution! We are actually planning on not using that Logger class and just following the standard slf4j pattern referenced here: http://www.slf4j.org/manual.html ; the pattern we're going to follow is in edu.stanford.nlp.classify.SVMLightClassifierFactory as an example. Slowly but surely over time we will be converting everything over to this new logging method. It sounds like you are interested in changing print statements, so let me ponder the best way to move forward! We are planning to release 3.5.3 soon, so I think the plan here is to just convert a few things to test the waters, and then in the next release maybe have more substantial changes. Regarding this specific pull request, one of us should change your work to fit that standard pattern. I'm happy to convert it or you can if you have a chance. Once again, thanks for your interest on helping us make this change! |
Perfect! I actually prefer that style too, but i just wasn't sure since this Logging class existed... PR updated! Let me know if that looks ok. |
34e1301
to
82040f1
Compare
@J38 Ping! Just checking back in on this PR. |
Hi I'll merge this today, it looks great! Thanks again for the help! If you are interested in helping more we'd greatly appreciate it! Our plan is to hold off on any more logging changes until we release 3.5.3 and finalize the logging plans. But if you'd like to convert statements, you could convert a package at a time, and then I'll review what you did and merge it in! Once again thanks for your help and interest in Stanford CoreNLP! |
You bet - do you mean just converting |
Yes I think our first goal should be to change the System.out.println and System.err.println statements, and then eventually change everything else. Thanks again! |
82040f1
to
3dc81d6
Compare
Thanks. Merged. |
Based on the decision to switch over to slf4j per @manning , I thought I would put together a small PR to test the slf4j waters with reviewers.
This uses the Logging class (created previously by another contributor) to retrieve an instance of a Logger. If that isn't desired (you'd rather see just
Logger logger = LoggerFactory.getLogger()
, please let me know and I'll adjust.