add docs and testing for the LoggingHandler.