Fixes to Logger and AppDelegate