Parameter filtering when logging parameters

This is discussed at #423.
I've added parameter filtering.
I'll squash commits if it's allowed to merge.
Thanks in advance!