RFR: 8327410: Add hostname option for UL file names [v3]

Fredrik Bredberg fbredberg at openjdk.org
Mon Mar 11 09:46:56 UTC 2024


On Mon, 11 Mar 2024 03:26:46 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> src/hotspot/share/logging/logConfiguration.cpp line 617:
>> 
>>> 615:   out->print_cr(" stdout/stderr");
>>> 616:   out->print_cr(" file=<filename>");
>>> 617:   out->print_cr("  If the filename contains %%p, %%t and/or %%hn, they will expand to the JVM's PID, startup timestamp and host name, respectively.");
>> 
>> The same update needs to be applied to the java manpage please - closed source (java.md) and open troff (java.1) files.
>
> Why `%hn` rather than just `%h`?

Because the log decorator for hostname is `hn`, so I think it's a good idea to choose the same.
Having two different "tags" for the same thing (hostname) within Unified Logging, would be more confusing.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18153#discussion_r1519419325


More information about the hotspot-runtime-dev mailing list