Make sure the logger always works; Fix config handling