Added log method to Logger
and modified pom.xml to java8