passing in logging object