The HttpClient internal DebugLogger could be simplified if its configuration was held in a record. Some of the methods in Utils that return a debug logger could also be simplified/removed. The system property that configures the debug logging could be extended to choose between System.err, System.out, System.Logger, or any of these configurations. Passing -Djdk.internal.httpclient.debug=true still works as before.
------------- Commit messages: - 8303682 Changes: https://git.openjdk.org/jdk/pull/12900/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12900&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8303682 Stats: 703 lines in 10 files changed: 476 ins; 122 del; 105 mod Patch: https://git.openjdk.org/jdk/pull/12900.diff Fetch: git fetch https://git.openjdk.org/jdk pull/12900/head:pull/12900 PR: https://git.openjdk.org/jdk/pull/12900
