Better Coding practice of not calling printStackTrace instead use java.util.logging