JDK-7006814 : sun.util.logging.PlatformLogger ability to override the output format
Type:Enhancement
Component:core-libs
Sub-Component:java.util.logging
Affected Version:7
Priority:P4
Status:Closed
Resolution:Duplicate
OS:generic
CPU:generic
Submitted:2010-12-14
Updated:2011-03-29
Resolved:2011-03-29
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Need an ability of the sun.util.logging.PlatformLogger to override the output format
Comments
EVALUATION
6381464 is fixed in JDK 7 that also covers the PlatformLogger case.
So close this as a dup of 6381464.
To just print just the level and the log message, you can set this system property:
java -Djava.util.logging.SimpleFormatter.format="%4$s: %5$s%n" Main
29-03-2011
EVALUATION
Before 6381464 is fixed, the default will be 2-line. For debugging use,
one line would reduce the amount of log messages. One can set a system property "sun.util.logging.oneLineFormat" to indicate if it's 1-line format or 2-line format.