use passed in logger