add logger provided to work function as second argument.