fixed wrong ifdefs and missing constructor for Logger