add slf4j logger and replace e.printStackTrace as per sonar major issue