Implement a selective log method, plus some examples.

This is a proposal.  I'm not intending to merge this as is right now.