I can't see the logger value being set anywhere. Is it being used at all?