Fixed logging in Application