integrate logging and quiet it during testing