passing a common logger throughout