Added CustomHtmlFormatter for browser display and LoggingActivityHandler for console display.