Replace build in logger with logging package

My fork was in a very strange state, I needed to create a new fork. But now it should work again...

Sorry for the trouble.