Complete logger class, and the class to test it