0

currently I'm trying to set trace logging level for internal JDK classes, especially for the new HttpClient.

When I add to my application.yaml:

logging:
 level:
  root: INFO

Everything logs in trace.

But when I want to enable trace logging only for JDK packages like:

logging:
  level:
    root: INFO
    jdk.internal.net.http: TRACE

Those packages don't start log in trace, the entire app uses root level, which is INFO. What do I need to solve this problem? Thanks guys.

8
  • Which JDK are you using? Commented Sep 1, 2020 at 17:43
  • Possible duplicate: stackoverflow.com/questions/53215038/… Commented Sep 1, 2020 at 17:47
  • jdk.internal.net.http does not exist anymore since Java 11, AFAIK Commented Sep 1, 2020 at 17:47
  • HttpClient logging is configured on command line, not via standard logging levels, AFAIK Commented Sep 1, 2020 at 17:48
  • I'm using Oracle JDK 11 Commented Sep 2, 2020 at 4:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.