add docs and testing for the LoggingHandler.
Merge remote-tracking branch: upstream/master