stefanth/jsmpp — comment on commit 6869d0a92ee92242a78cef0a05a9b28596e98a45
File:  line 0
By stefanth:

I understand that it is important to make it easy for users to use the library. However, log4j automatically logs an error to stderr when it is not configured properly. It prints "No appenders found for logger" and then "Please configure log4j properly". If that message from log4j is not enough for users, then maybe the easiest way is to print all errors to both stderr and log4j. This is part of a bigger general problem. What should jsmpp do in case log4j is not properly configured and there are error conditions in jsmpp? There are 32 cases of logger.warn and 65 cases of logger.error calls. Why should the SMPPServerSession class send errors to both log4j and stderr but not any of the other cases?