make logger work with java 1.6