Moved Logging to a seperate project and made logging ascynchronous