How to list syntax and available tags for -Xlog

后端 未结 1 338
忘了有多久
忘了有多久 2021-01-11 19:32

OpenJDK 9\'s new Unified JVM Logging can filter logs by tags, but the JEP does not provide a list of all available tags. How can I list all available arguments?

相关标签:
1条回答
  • 2021-01-11 20:10

    java -Xlog:help prints the argument syntax, including the list of tags available in that particular version, which may change over time.

    Note that logging with -Xlog:<tag> may not print everything related to that tag since it requires the log message to only have that tag. Use -Xlog:<tag>* instead to include messages containing multiple tags.

    0 讨论(0)
提交回复
热议问题