Fixed logging so that it works properly (Problem was that the configuration wasn't read properly)