Fixed Logging Setup

This is an important fix. Everything crashes without this.