add parameterised logging