Change logger to only be instantiated when explicitly enabled to not cause unneccessary debugging
especially in dev-installations
References #131