add logging class with javadoc