i could remove setLogger and make it an optional constructor argument.