Thread logger though classes
Add logging and integration test