Fixed location of adding the logger