Integrated: 8327410: Add hostname option for UL file names

Fredrik Bredberg fbredberg at openjdk.org
Thu Apr 4 15:31:11 UTC 2024


On Thu, 7 Mar 2024 13:02:21 GMT, Fredrik Bredberg <fbredberg at openjdk.org> wrote:

> Added %hn as way to make the Unified Logging file name include the host name.
> This is done in line with the already existing %p for pid, and %t for time stamp.
> 
> Also the %hn decorator is already used to prepend the host name to each log line. See: The [JDK-8148219](https://bugs.openjdk.org/browse/JDK-8148219).
> 
> Example: `java -Xlog:gc+init:file=frbr_%hn.%p.%t.log -version`
> 
> Tested tier1-tier5.

This pull request has now been integrated.

Changeset: f3db2796
Author:    Fredrik Bredberg <fbredberg at openjdk.org>
Committer: Jesper Wilhelmsson <jwilhelm at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f3db2796b875ee9177b111a0f3da3b9566d750d6
Stats:     82 lines in 4 files changed: 25 ins; 22 del; 35 mod

8327410: Add hostname option for UL file names

Reviewed-by: jsjolen, dholmes

-------------

PR: https://git.openjdk.org/jdk/pull/18153


More information about the hotspot-runtime-dev mailing list