-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
7u51
-
x86_64
-
windows_7
A DESCRIPTION OF THE REQUEST :
The LogRecord class has properties for milliseconds and sequence number. Both of these properties are only in context for a single JVM instance. Per the documentation, the LogRecord is serializable and can be sent to other machines using RMI. There is no way to determine the orginal source JVM of a LogRecord.
JUSTIFICATION :
Including the JVM name that created the LogRecord would allow sorting LogRecords that where collected from multiple JVMs. It would also provide context for sequence number since that is only per JVM.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Add: public String getSourceRuntimeName().
Add: public String setSourceRuntimeName(String name).
The default value will be set to java.lang.management.RuntimeMXBean.getName(). If the management API is not available then the return new String(InetAddress.getLocalHost().getAddress()) +'@' + InetAddress.getLocalHost().getHostName().
CUSTOMER SUBMITTED WORKAROUND :
Include this information as a LogRecord param.
The LogRecord class has properties for milliseconds and sequence number. Both of these properties are only in context for a single JVM instance. Per the documentation, the LogRecord is serializable and can be sent to other machines using RMI. There is no way to determine the orginal source JVM of a LogRecord.
JUSTIFICATION :
Including the JVM name that created the LogRecord would allow sorting LogRecords that where collected from multiple JVMs. It would also provide context for sequence number since that is only per JVM.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Add: public String getSourceRuntimeName().
Add: public String setSourceRuntimeName(String name).
The default value will be set to java.lang.management.RuntimeMXBean.getName(). If the management API is not available then the return new String(InetAddress.getLocalHost().getAddress()) +'@' + InetAddress.getLocalHost().getHostName().
CUSTOMER SUBMITTED WORKAROUND :
Include this information as a LogRecord param.